Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for unicos (0.03 sec)

  1. scripts/translate.py

        Unicode U+201C (LEFT DOUBLE QUOTATION MARK) and Unicode U+201D (RIGHT DOUBLE QUOTATION MARK)
    
    "English single typographic quotes"
    
        The characters «‘» and «’»
        Unicode U+2018 (LEFT SINGLE QUOTATION MARK) and Unicode U+2019 (RIGHT SINGLE QUOTATION MARK)
    
    "code snippet"
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  2. fastapi/openapi/models.py

        headers: Optional[dict[str, Union[Header, Reference]]] = None
        securitySchemes: Optional[dict[str, Union[SecurityScheme, Reference]]] = None
        links: Optional[dict[str, Union[Link, Reference]]] = None
        # Using Any for Specification Extensions
        callbacks: Optional[dict[str, Union[dict[str, PathItem], Reference, Any]]] = None
        pathItems: Optional[dict[str, Union[PathItem, Reference]]] = 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)
  3. fastapi/_compat/v2.py

        name: str
        mode: Literal["validation", "serialization"] = "validation"
        config: Union[ConfigDict, None] = None
    
        @property
        def alias(self) -> str:
            a = self.field_info.alias
            return a if a is not None else self.name
    
        @property
        def validation_alias(self) -> Union[str, None]:
            va = self.field_info.validation_alias
            if isinstance(va, str) and va:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. tests/test_response_model_as_return_annotation.py

    
    @app.get(
        "/response_model_union-no_annotation-return_model1",
        response_model=Union[User, Item],
    )
    def response_model_union_no_annotation_return_model1():
        return DBUser(name="John", surname="Doe", password_hash="secret")
    
    
    @app.get(
        "/response_model_union-no_annotation-return_model2",
        response_model=Union[User, Item],
    )
    def response_model_union_no_annotation_return_model2():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  5. tests/test_openapi_examples.py

    from typing import Union
    
    from fastapi import Body, Cookie, FastAPI, Header, Path, Query
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        data: str
    
    
    @app.post("/examples/")
    def examples(
        item: Item = Body(
            examples=[
                {"data": "Data in Body examples, example1"},
            ],
            openapi_examples={
                "Example One": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. tests/test_additional_properties_bool.py

    from typing import Union
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    
    
    class FooBaseModel(BaseModel):
        model_config = ConfigDict(extra="forbid")
    
    
    class Foo(FooBaseModel):
        pass
    
    
    app = FastAPI()
    
    
    @app.post("/")
    async def post(
        foo: Union[Foo, None] = None,
    ):
        return foo
    
    
    client = TestClient(app)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. tests/test_request_params/test_body/test_list.py

    from typing import Annotated, Union
    
    import pytest
    from dirty_equals import IsOneOf, IsPartialDict
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. fastapi/encoders.py

        Url,
        is_pydantic_v1_model_instance,
    )
    
    
    # Taken from Pydantic v1 as is
    def isoformat(o: Union[datetime.date, datetime.time]) -> str:
        return o.isoformat()
    
    
    # Adapted from Pydantic v1
    # TODO: pv2 should this return strings instead?
    def decimal_encoder(dec_value: Decimal) -> Union[int, float]:
        """
        Encodes a Decimal as int if there's no exponent, otherwise float
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. fastapi/openapi/utils.py

        webhooks: Optional[Sequence[BaseRoute]] = None,
        tags: Optional[list[dict[str, Any]]] = None,
        servers: Optional[list[dict[str, Union[str, Any]]]] = None,
        terms_of_service: Optional[str] = None,
        contact: Optional[dict[str, Union[str, Any]]] = None,
        license_info: Optional[dict[str, Union[str, Any]]] = None,
        separate_input_output_schemas: bool = True,
        external_docs: Optional[dict[str, Any]] = None,
    ) -> dict[str, Any]:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  10. fastapi/exceptions.py

    from collections.abc import Sequence
    from typing import Annotated, Any, Optional, TypedDict, Union
    
    from annotated_doc import Doc
    from pydantic import BaseModel, create_model
    from starlette.exceptions import HTTPException as StarletteHTTPException
    from starlette.exceptions import WebSocketException as StarletteWebSocketException
    
    
    class EndpointContext(TypedDict, total=False):
        function: str
        path: str
        file: str
        line: int
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top