Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expert (0.09 sec)

  1. docs/en/docs/release-notes.md

    In short, if you had dependencies that looked like:
    
    ```Python
    def my_dep():
        try:
            yield
        except SomeException:
            pass
    ```
    
    Now you need to make sure you raise again after `except`, just as you would in regular Python:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
  2. tests/test_get_model_definitions_formfeed_escape.py

                "city": "Anytown",
                "state_province": "CA",
            },
        }
    
    
    def test_openapi_schema(client: TestClient):
        """
        Sanity check to ensure our app's openapi schema renders as we expect
        """
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "components": {
                    "schemas": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. .github/workflows/translate.yml

                requirements**.txt
                pyproject.toml
          - name: Install Dependencies
            run: uv pip install -r requirements-github-actions.txt -r requirements-translations.txt
          - name: Export Language Codes
            id: show-langs
            run: |
              echo "langs=$(python ./scripts/translate.py llm-translatable-json)" >> $GITHUB_OUTPUT
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:48:45 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. fastapi/_compat/v2.py

    from typing_extensions import Literal, get_args, get_origin
    
    try:
        from pydantic_core.core_schema import (
            with_info_plain_validator_function as with_info_plain_validator_function,
        )
    except ImportError:  # pragma: no cover
        from pydantic_core.core_schema import (
            general_plain_validator_function as with_info_plain_validator_function,  # noqa: F401
        )
    
    RequiredParam = PydanticUndefined
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  5. fastapi/encoders.py

                f" Please update the model {obj!r}."
            )
        try:
            data = dict(obj)
        except Exception as e:
            errors: list[Exception] = []
            errors.append(e)
            try:
                data = vars(obj)
            except Exception as e:
                errors.append(e)
                raise ValueError(errors) from e
        return jsonable_encoder(
            data,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. fastapi/dependencies/utils.py

                        parse_options_header,
                    )
    
                    assert parse_options_header
                except ImportError:
                    logger.error(multipart_incorrect_install_error)
                    raise RuntimeError(multipart_incorrect_install_error) from None
            except ImportError:
                logger.error(multipart_not_installed_error)
                raise RuntimeError(multipart_not_installed_error) from None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  7. fastapi/utils.py

        kwargs = {"mode": mode, "name": name, "field_info": field_info}
        try:
            return v2.ModelField(**kwargs)  # type: ignore[return-value,arg-type]
        except PydanticSchemaGenerationError:
            raise fastapi.exceptions.FastAPIError(
                _invalid_args_message.format(type_=type_)
            ) from None
    
    
    def create_cloned_field(
        field: ModelField,
        *,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. fastapi/_compat/shared.py

    def lenient_issubclass(
        cls: Any, class_or_tuple: Union[type[Any], tuple[type[Any], ...], None]
    ) -> 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:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. scripts/translate.py

    Do not translate the content of code snippets, keep the original in English. For example, «`list`», «`dict`», keep them as is.
    
    
    ### Content of code blocks
    
    Do not translate the content of code blocks, except for comments in the language which the code block uses.
    
    Examples:
    
        Source (English) – The code block is a bash code example with one comment:
    
            «««
            ```bash
            # Print greeting
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  10. fastapi/routing.py

                        "has a block with a bare except, or a block with except Exception, "
                        "and is not raising the exception again. Read more about it in the "
                        "docs: https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-with-yield/#dependencies-with-yield-and-except"
                    )
    
            # Same as in Starlette
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top