Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for is_gen_callable (0.05 seconds)

  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)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 7.1K bytes
    - Click Count (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
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 37.6K bytes
    - Click Count (3)
Back to Top