Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for ignored (0.2 sec)

  1. fastapi/param_functions.py

            Doc(
                """
                'Blacklist' validation step. The vanilla parameter field will be the
                single one of the alias' or set of aliases' fields and all the other
                fields will be ignored at serialization time.
                """
            ),
        ] = None,
        title: Annotated[
            Optional[str],
            Doc(
                """
                Human-readable title.
                """
            ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  2. fastapi/security/api_key.py

                    parameter or in an HTTP Bearer token).
                    """
                ),
            ] = True,
        ):
            self.model: APIKey = APIKey(
                **{"in": APIKeyIn.query},  # type: ignore[arg-type]
                name=name,
                description=description,
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. scripts/docs.py

            # removed or not.
        else:
            dist_path = site_path / lang
            shutil.rmtree(dist_path, ignore_errors=True)
        current_dir = os.getcwd()
        os.chdir(lang_path)
        shutil.rmtree(build_site_dist_path, ignore_errors=True)
        subprocess.run(["mkdocs", "build", "--site-dir", build_site_dist_path], check=True)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  4. fastapi/dependencies/utils.py

                from multipart import __version__  # type: ignore
    
                assert __version__
                try:
                    # parse_options_header is only available in the right multipart
                    from multipart.multipart import parse_options_header  # type: ignore
    
                    assert parse_options_header
                except ImportError:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. tests/test_multi_body_errors.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, condecimal
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        age: condecimal(gt=Decimal(0.0))  # type: ignore
    
    
    @app.post("/items/")
    def save_item_no_body(item: List[Item]):
        return {"item": item}
    
    
    client = TestClient(app)
    
    
    def test_put_correct_body():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  6. tests/test_jsonable_encoder.py

        else:
    
            class Config:
                use_enum_values = True
    
    
    class ModelWithAlias(BaseModel):
        foo: str = Field(alias="Foo")
    
    
    class ModelWithDefault(BaseModel):
        foo: str = ...  # type: ignore
        bar: str = "bar"
        bla: str = "bla"
    
    
    def test_encode_dict():
        pet = {"name": "Firulais", "owner": {"name": "Foo"}}
        assert jsonable_encoder(pet) == {"name": "Firulais", "owner": {"name": "Foo"}}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. fastapi/openapi/utils.py

        if webhook_paths:
            output["webhooks"] = webhook_paths
        if tags:
            output["tags"] = tags
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  8. configure.py

      """Convert a version number to a integer that can be used to compare.
    
      Version strings of the form X.YZ and X.Y.Z-xxxxx are supported. The
      'xxxxx' part, for instance 'homebrew' on OS/X, is ignored.
    
      Args:
        version: a version to be converted
    
      Returns:
        An integer if converted successfully, otherwise return None.
      """
      version = version.split('-')[0]
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  9. fastapi/utils.py

        new_field.has_alias = field.has_alias  # type: ignore[attr-defined]
        new_field.alias = field.alias  # type: ignore[misc]
        new_field.class_validators = field.class_validators  # type: ignore[attr-defined]
        new_field.default = field.default  # type: ignore[misc]
        new_field.required = field.required  # type: ignore[misc]
        new_field.model_config = field.model_config  # type: ignore[attr-defined]
        new_field.field_info = field.field_info
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  10. tests/test_param_class.py

    from fastapi import FastAPI
    from fastapi.params import Param
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: Optional[str] = Param(default=None)):  # type: ignore
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_default_param_query_none():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 636 bytes
    - Viewed (0)
Back to top