Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for is_gen_callable (0.19 sec)

  1. fastapi/dependencies/models.py

        def _security_dependencies(self) -> list["Dependant"]:
            security_deps = [dep for dep in self.dependencies if dep._is_security_scheme]
            return security_deps
    
        @cached_property
        def is_gen_callable(self) -> bool:
            if self.call is None:
                return False  # pragma: no cover
            if inspect.isgeneratorfunction(
                _impartial(self.call)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

                is_path_param=is_path_param,
            )
            if param_details.depends is not None:
                assert param_details.depends.dependency
                if (
                    (dependant.is_gen_callable or dependant.is_async_gen_callable)
                    and dependant.computed_scope == "request"
                    and param_details.depends.scope == "function"
                ):
                    assert dependant.call
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
Back to top