Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 143 for Warnings (0.05 seconds)

  1. architecture/standards/0008-use-nullaway.md

    Our codebase uses `null` extensively to represent an absence of value or optionality of the argument.
    We utilize nullness annotations in Java code and somewhat rely on IDE warnings to guide us.
    However, the Java code we have is not fully annotated, which causes several consequences:
    * IDE warnings can be misleading
    * Redundant null checks may increase binary size, hurt performance, and increase cognitive load for readers
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 11 10:24:40 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_graphql/test_tutorial001.py

    import warnings
    
    import pytest
    from starlette.testclient import TestClient
    
    warnings.filterwarnings(
        "ignore",
        message=r"The 'lia' package has been renamed to 'cross_web'\..*",
        category=DeprecationWarning,
    )
    
    from docs_src.graphql_.tutorial001_py39 import app  # noqa: E402
    
    
    @pytest.fixture(name="client")
    def get_client() -> TestClient:
        return TestClient(app)
    
    
    def test_query(client: TestClient):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_sql_databases/test_tutorial001.py

            yield c
        # Clean up connection explicitly to avoid resource warning
        mod.engine.dispose()
    
    
    def test_crud_app(client: TestClient):
        # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor
        # this if using obj.model_validate becomes independent of Pydantic v2
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            # No heroes before creating
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 14K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            yield c
        # Clean up connection explicitly to avoid resource warning
        mod.engine.dispose()
    
    
    def test_crud_app(client: TestClient):
        # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor
        # this if using obj.model_validate becomes independent of Pydantic v2
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            # No heroes before creating
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  5. fastapi/_compat/shared.py

        )
    
    
    def is_pydantic_v1_model_instance(obj: Any) -> bool:
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", UserWarning)
            from pydantic import v1
        return isinstance(obj, v1.BaseModel)
    
    
    def is_pydantic_v1_model_class(cls: Any) -> bool:
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", UserWarning)
            from pydantic import v1
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  6. requirements-docs.txt

    jieba==0.42.1
    # For image processing by Material for MkDocs
    pillow==11.3.0
    # For image processing by Material for MkDocs
    cairosvg==2.8.2
    mkdocstrings[python]==0.30.1
    griffe-typingdoc==0.3.0
    griffe-warnings-deprecated==1.1.0
    # For griffe, it formats with black
    black==25.1.0
    mkdocs-macros-plugin==1.4.1
    markdown-include-variants==0.0.8
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 14:39:10 GMT 2025
    - 554 bytes
    - Click Count (0)
  7. tests/test_pydantic_v1_error.py

    import sys
    import warnings
    from typing import Union
    
    import pytest
    
    from tests.utils import skip_module_if_py_gte_314
    
    if sys.version_info >= (3, 14):
        skip_module_if_py_gte_314()
    
    from fastapi import FastAPI
    from fastapi.exceptions import PydanticV1NotSupportedError
    
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", UserWarning)
        from pydantic.v1 import BaseModel
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  8. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

                assertThat("Has errors", richReport.errors.map { it.message }, inAnyOrder(errors))
            }
    
            fun assertHasWarnings(vararg warnings: String) {
                assertThat("Has warnings", richReport.warnings.map { it.message }, inAnyOrder(warnings))
            }
    
            fun assertHasInformation(vararg information: String) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 18K bytes
    - Click Count (0)
  9. fastapi/utils.py

    import re
    import warnings
    from collections.abc import MutableMapping
    from typing import (
        TYPE_CHECKING,
        Any,
        Optional,
        Union,
    )
    from weakref import WeakKeyDictionary
    
    import fastapi
    from fastapi._compat import (
        BaseConfig,
        ModelField,
        PydanticSchemaGenerationError,
        Undefined,
        UndefinedType,
        Validator,
        annotation_is_pydantic_v1,
    )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  10. tests/test_jsonable_encoder.py

        assert jsonable_encoder(subclass_model) == {"dt_field": "2019-01-01T08:00:00+00:00"}
    
    
    def test_json_encoder_error_with_pydanticv1():
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", UserWarning)
            from pydantic import v1
    
        class ModelV1(v1.BaseModel):
            name: str
    
        data = ModelV1(name="test")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.2K bytes
    - Click Count (0)
Back to Top