Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 29 for ty (0.01 seconds)

  1. docs/en/docs/css/termynal.css

    [data-ty="input"]:before {
        content: '$';
    }
    
    [data-ty][data-ty-prompt]:before {
        content: attr(data-ty-prompt);
    }
    
    [data-ty-cursor]:after {
        content: attr(data-ty-cursor);
        font-family: monospace;
        margin-left: 0.5em;
        -webkit-animation: blink 1s infinite;
                animation: blink 1s infinite;
    }
    
    
    /* Cursor animation */
    
    @-webkit-keyframes blink {
        50% {
            opacity: 0;
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Nov 23 09:27:40 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  2. .pre-commit-config.yaml

          - id: local-mypy
            name: mypy check
            entry: uv run mypy fastapi
            require_serial: true
            language: unsupported
            pass_filenames: false
    
          - id: local-ty
            name: ty check
            entry: uv run ty check fastapi
            require_serial: true
            language: unsupported
            pass_filenames: false
    
          - id: add-permalinks-pages
            language: unsupported
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:06:36 GMT 2026
    - 2.6K bytes
    - Click Count (1)
  3. fastapi/_compat/__init__.py

    from .v2 import Undefined as Undefined
    from .v2 import Url as Url
    from .v2 import copy_field_info as copy_field_info
    from .v2 import create_body_model as create_body_model
    from .v2 import evaluate_forwardref as evaluate_forwardref  # ty: ignore[deprecated]
    from .v2 import get_cached_model_fields as get_cached_model_fields
    from .v2 import get_definitions as get_definitions
    from .v2 import get_flat_models_from_fields as get_flat_models_from_fields
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  4. fastapi/params.py

            super().__init__(**use_kwargs)
    
        def __repr__(self) -> str:
            return f"{self.__class__.__name__}({self.default})"
    
    
    class Path(Param):  # type: ignore[misc]  # ty: ignore[unused-ignore-comment]
        in_ = ParamTypes.path
    
        def __init__(
            self,
            default: Any = ...,
            *,
            default_factory: Callable[[], Any] | None = _Unset,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/references/other-tools.md

    # Other Tools
    
    ## uv
    
    If uv is available, use it to manage dependencies.
    
    ## Ruff
    
    If Ruff is available, use it to lint and format the code. Consider enabling the FastAPI rules.
    
    ## ty
    
    If ty is available, use it to check types.
    
    ## Asyncer
    
    When needing to run blocking code inside of async functions, or async code inside of blocking functions, suggest using Asyncer.
    
    Prefer it over AnyIO or asyncio.
    
    Install:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  6. fastapi/_compat/v2.py

    from pydantic import ValidationError as ValidationError
    from pydantic._internal._schema_generation_shared import (  # type: ignore[attr-defined]  # ty: ignore[unused-ignore-comment]
        GetJsonSchemaHandler as GetJsonSchemaHandler,
    )
    from pydantic._internal._typing_extra import eval_type_lenient  # ty: ignore[deprecated]
    from pydantic.fields import FieldInfo as FieldInfo
    from pydantic.json_schema import GenerateJsonSchema as _GenerateJsonSchema
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  7. fastapi/dependencies/utils.py

                from multipart import (  # type: ignore[no-redef,import-untyped]  # ty: ignore[unused-ignore-comment]
                    __version__,
                )
    
                assert __version__
                try:
                    # parse_options_header is only available in the right multipart
                    from multipart.multipart import (  # type: ignore[import-untyped]  # ty: ignore[unused-ignore-comment]
                        parse_options_header,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  8. fastapi/encoders.py

        if include is not None and not isinstance(include, (set, dict)):
            include = set(include)  # type: ignore[assignment]  # ty: ignore[unused-ignore-comment]
        if exclude is not None and not isinstance(exclude, (set, dict)):
            exclude = set(exclude)  # type: ignore[assignment]  # ty: ignore[unused-ignore-comment]
        if isinstance(obj, BaseModel):
            obj_dict = obj.model_dump(
                mode="json",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  9. scripts/lint.sh

    #!/usr/bin/env bash
    
    set -e
    set -x
    
    mypy fastapi
    ty check fastapi
    ruff check fastapi tests docs_src scripts
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 24 16:39:32 GMT 2026
    - 142 bytes
    - Click Count (0)
  10. fastapi/cli.py

    try:
        from fastapi_cli.cli import main as cli_main
    
    except ImportError:  # pragma: no cover
        cli_main = None  # type: ignore
    
    
    def main() -> None:
        if not cli_main:  # type: ignore[truthy-function]  # ty: ignore[unused-ignore-comment]
            message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
            print(message)
            raise RuntimeError(message)  # noqa: B904
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 455 bytes
    - Click Count (0)
Back to Top