Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for issubclass (0.16 sec)

  1. fastapi/_compat.py

            GetJsonSchemaHandler as GetJsonSchemaHandler,
        )
        from pydantic._internal._typing_extra import eval_type_lenient
        from pydantic._internal._utils import lenient_issubclass as lenient_issubclass
        from pydantic.fields import FieldInfo
        from pydantic.json_schema import GenerateJsonSchema as GenerateJsonSchema
        from pydantic.json_schema import JsonSchemaValue as JsonSchemaValue
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

    ) -> Optional[bool]:
        if lenient_issubclass(type_annotation, Request):
            dependant.request_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, WebSocket):
            dependant.websocket_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, HTTPConnection):
            dependant.http_connection_param_name = param_name
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  3. fastapi/utils.py

    import fastapi
    from fastapi._compat import (
        PYDANTIC_V2,
        BaseConfig,
        ModelField,
        PydanticSchemaGenerationError,
        Undefined,
        UndefinedType,
        Validator,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder, DefaultType
    from pydantic import BaseModel, create_model
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. fastapi/openapi/utils.py

    from fastapi._compat import (
        GenerateJsonSchema,
        JsonSchemaValue,
        ModelField,
        Undefined,
        get_compat_model_name_map,
        get_definitions,
        get_schema_from_model_field,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder
    from fastapi.dependencies.models import Dependant
    from fastapi.dependencies.utils import get_flat_dependant, get_flat_params
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  5. tests/test_generate_unique_id_function.py

            warnings.simplefilter("always")
            client.get("/openapi.json")
            assert len(w) >= 2
            duplicate_warnings = [
                warning for warning in w if issubclass(warning.category, UserWarning)
            ]
            assert len(duplicate_warnings) > 0
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  6. fastapi/routing.py

                # as is just because it's an instance of a subclass of a more limited class
                # e.g. UserInDB (containing hashed_password) could be a subclass of User
                # that doesn't have the hashed_password. But because it's a subclass, it
                # would pass the validation and be returned as is.
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolDeclarationOverridesProvider.kt

                }
            }
        }
    
        override fun isSubClassOf(subClass: KtClassOrObjectSymbol, superClass: KtClassOrObjectSymbol): Boolean {
            return isSubClassOf(subClass, superClass, allowIndirectSubtyping = true)
        }
    
        override fun isDirectSubClassOf(subClass: KtClassOrObjectSymbol, superClass: KtClassOrObjectSymbol): Boolean {
            return isSubClassOf(subClass, superClass, allowIndirectSubtyping = false)
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Mar 22 14:22:10 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolDeclarationOverridesProvider.kt

            }
    
            return overriddenDescriptors
        }
    
        override fun isSubClassOf(subClass: KtClassOrObjectSymbol, superClass: KtClassOrObjectSymbol): Boolean {
            if (subClass == superClass) return false
    
            val subClassDescriptor = getSymbolDescriptor(subClass) as? ClassDescriptor ?: return false
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 13 16:31:41 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  9. tests/test_include_router_defaults_overrides.py

    
    def test_openapi():
        client = TestClient(app)
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            response = client.get("/openapi.json")
            assert issubclass(w[-1].category, UserWarning)
            assert "Duplicate Operation ID" in str(w[-1].message)
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/symbolDeclarationOverridesProvider/Fe10IdeNormalAnalysisSourceModuleIsSubclassOfTestGenerated.java

      }
    
      @Test
      @TestMetadata("childClass.kt")
      public void testChildClass() {
        runTest("analysis/analysis-api/testData/components/symbolDeclarationOverridesProvider/isSubclassOf/childClass.kt");
      }
    
      @Test
      @TestMetadata("grandParentClass.kt")
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 13 16:31:41 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top