Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for mybool (0.05 sec)

  1. fastapi/_compat/shared.py

    ) -> bool:
        try:
            return isinstance(cls, type) and issubclass(cls, class_or_tuple)  # type: ignore[arg-type]
        except TypeError:  # pragma: no cover
            if isinstance(cls, WithArgsTypes):
                return False
            raise  # pragma: no cover
    
    
    def _annotation_is_sequence(annotation: Union[type[Any], None]) -> bool:
        if lenient_issubclass(annotation, (str, bytes)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. tests/test_dependency_wrapped.py

    # Sync wrapper
    
    
    @noop_wrap
    def wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    def wrapped_gen_dependency() -> Generator[bool, None, None]:
        yield True
    
    
    @noop_wrap
    async def async_wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    async def async_wrapped_gen_dependency() -> AsyncGenerator[bool, None]:
        yield True
    
    
    @app.get("/wrapped-dependency/")
    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. fastapi/dependencies/models.py

        background_tasks_param_name: Optional[str] = None
        security_scopes_param_name: Optional[str] = None
        own_oauth_scopes: Optional[list[str]] = None
        parent_oauth_scopes: Optional[list[str]] = None
        use_cache: bool = True
        path: Optional[str] = None
        scope: Union[Literal["function", "request"], None] = None
    
        @cached_property
        def oauth_scopes(self) -> list[str]:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. fastapi/openapi/models.py

    
    class ParameterBase(BaseModelWithConfig):
        description: Optional[str] = None
        required: Optional[bool] = None
        deprecated: Optional[bool] = None
        # Serialization rules for simple scenarios
        style: Optional[str] = None
        explode: Optional[bool] = None
        allowReserved: Optional[bool] = None
        schema_: Optional[Union[Schema, Reference]] = Field(default=None, alias="schema")
        example: Optional[Any] = None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. fastapi/params.py

                ),
            ] = None,
            discriminator: Union[str, None] = None,
            strict: Union[bool, None] = _Unset,
            multiple_of: Union[float, None] = _Unset,
            allow_inf_nan: Union[bool, None] = _Unset,
            max_digits: Union[int, None] = _Unset,
            decimal_places: Union[int, None] = _Unset,
            examples: Optional[list[Any]] = None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  6. fastapi/_compat/v2.py

            mode: Literal["json", "python"] = "json",
            include: Union[IncEx, None] = None,
            exclude: Union[IncEx, None] = None,
            by_alias: bool = True,
            exclude_unset: bool = False,
            exclude_defaults: bool = False,
            exclude_none: bool = False,
        ) -> Any:
            # What calls this code passes a value that already called
            # self._type_adapter.validate_python(value)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. tests/test_router_events.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class State(BaseModel):
        app_startup: bool = False
        app_shutdown: bool = False
        router_startup: bool = False
        router_shutdown: bool = False
        sub_router_startup: bool = False
        sub_router_shutdown: bool = False
    
    
    @pytest.fixture
    def state() -> State:
        return State()
    
    
    @pytest.mark.filterwarnings(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. fastapi/routing.py

        response_content: Any,
        include: Optional[IncEx] = None,
        exclude: Optional[IncEx] = None,
        by_alias: bool = True,
        exclude_unset: bool = False,
        exclude_defaults: bool = False,
        exclude_none: bool = False,
        is_coroutine: bool = True,
        endpoint_ctx: Optional[EndpointContext] = None,
    ) -> Any:
        if field:
            errors = []
            if is_coroutine:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  9. fastapi/param_functions.py

        ] = None,
        deprecated: Annotated[
            Union[deprecated, str, bool, None],
            Doc(
                """
                Mark this parameter field as deprecated.
    
                It will affect the generated OpenAPI (e.g. visible at `/docs`).
                """
            ),
        ] = None,
        include_in_schema: Annotated[
            bool,
            Doc(
                """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  10. fastapi/dependencies/utils.py

            call=depends.dependency,
            scope=depends.scope,
            own_oauth_scopes=own_oauth_scopes,
        )
    
    
    def get_flat_dependant(
        dependant: Dependant,
        *,
        skip_repeats: bool = False,
        visited: Optional[list[DependencyCacheKey]] = None,
        parent_oauth_scopes: Optional[list[str]] = None,
    ) -> Dependant:
        if visited is None:
            visited = []
    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