Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for yargs (0.01 sec)

  1. apache-maven/src/assembly/maven/bin/JvmConfigParser.java

        public static void main(String[] args) {
            if (args.length < 2 || args.length > 3) {
                System.err.println("Usage: java JvmConfigParser.java <jvm.config-path> <maven-project-basedir> [output-file]");
                System.exit(1);
            }
    
            Path jvmConfigPath = Paths.get(args[0]);
            String mavenProjectBasedir = args[1];
            Path outputFile = args.length == 3 ? Paths.get(args[2]) : null;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 10 16:40:06 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. tests/test_dependency_wrapped.py

    
    def noop_wrap(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            return func(*args, **kwargs)
    
        return wrapper
    
    
    def noop_wrap_async(func):
        if inspect.isgeneratorfunction(func):
    
            @wraps(func)
            async def gen_wrapper(*args, **kwargs):
                async for item in iterate_in_threadpool(func(*args, **kwargs)):
                    yield item
    
            return gen_wrapper
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. .pre-commit-config.yaml

    repos:
      - repo: https://github.com/pre-commit/pre-commit-hooks
        rev: v6.0.0
        hooks:
          - id: check-added-large-files
            args: ['--maxkb=750']
          - id: check-toml
          - id: check-yaml
            args:
            - --unsafe
          - id: end-of-file-fixer
          - id: trailing-whitespace
    
      - repo: local
        hooks:
          - id: local-ruff-check
            name: ruff check
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 11:36:58 UTC 2025
    - 1.8K bytes
    - Viewed (1)
  4. fastapi/background.py

                ),
            ],
            *args: P.args,
            **kwargs: P.kwargs,
        ) -> None:
            """
            Add a function to be called in the background after the response is sent.
    
            Read more about it in the
            [FastAPI docs for Background Tasks](https://fastapi.tiangolo.com/tutorial/background-tasks/).
            """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. tests/test_wrapped_method_forward_reference.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    from .forward_reference_type import forwardref_method
    
    
    def passthrough(f):
        @functools.wraps(f)
        def method(*args, **kwargs):
            return f(*args, **kwargs)
    
        return method
    
    
    def test_wrapped_method_type_inference():
        """
        Regression test ensuring that when a method imported from another module
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 17:23:14 UTC 2025
    - 997 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_python_types/test_tutorial006.py

    
    def test_process_items():
        with patch("builtins.print") as mock_print:
            process_items(["item_a", "item_b", "item_c"])
    
        assert mock_print.call_count == 3
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("item_a",),
            ("item_b",),
            ("item_c",),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 426 bytes
    - Viewed (0)
  7. docs_src/wsgi/tutorial001_py39.py

    from fastapi.middleware.wsgi import WSGIMiddleware
    from flask import Flask, request
    from markupsafe import escape
    
    flask_app = Flask(__name__)
    
    
    @flask_app.route("/")
    def flask_main():
        name = request.args.get("name", "World")
        return f"Hello, {escape(name)} from Flask!"
    
    
    app = FastAPI()
    
    
    @app.get("/v2")
    def read_main():
        return {"message": "Hello World"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 443 bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        npTester.testAllPublicStaticMethods(ThreadFactoryBuilder.class);
        npTester.testAllPublicInstanceMethods(builder);
      }
    
      private static String rootLocaleFormat(String format, Object... args) {
        return String.format(Locale.ROOT, format, args);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_python_types/test_tutorial011.py

        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
        assert mock_print.call_count == 2
        call_args = [str(arg.args[0]) for arg in mock_print.call_args_list]
        assert call_args == [
            "id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]",
            "123",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 691 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_python_types/test_tutorial008.py

    
    def test_process_items():
        with patch("builtins.print") as mock_print:
            process_items({"a": 1.0, "b": 2.5})
    
        assert mock_print.call_count == 4
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("a",),
            (1.0,),
            ("b",),
            (2.5,),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 417 bytes
    - Viewed (0)
Back to top