id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14,100 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.EncoderProtocol | from typing_extensions import Protocol, TypeAlias, TypeAliasType, deprecated, get_args, get_origin
class EncoderProtocol(Protocol):
"""Protocol for encoding and decoding data to and from bytes."""
@classmethod
def decode(cls, data: bytes) -> bytes:
"""Decode the data using the encoder.
Ar... |
class EncoderProtocol(Protocol):
'''Protocol for encoding and decoding data to and from bytes.'''
@classmethod
def decode(cls, data: bytes) -> bytes:
'''Decode the data using the encoder.
Args:
data: The data to decode.
Returns:
The decoded data.
'''
... | 7 | 4 | 9 | 2 | 2 | 5 | 1 | 1.7 | 1 | 2 | 0 | 2 | 0 | 0 | 3 | 25 | 35 | 8 | 10 | 7 | 3 | 17 | 7 | 4 | 3 | 1 | 4 | 0 | 3 |
14,101 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.GetPydanticSchema | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from .json_schema import JsonSchemaValue
from .... | @_dataclasses.dataclass(**_internal_dataclass.slots_true)
class GetPydanticSchema:
'''!!! abstract "Usage Documentation"
[Using `GetPydanticSchema` to Reduce Boilerplate](../concepts/types.md#using-getpydanticschema-to-reduce-boilerplate)
A convenience class for creating an annotation that provides pyda... | 3 | 2 | 8 | 0 | 7 | 1 | 3 | 1.67 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 44 | 12 | 12 | 5 | 10 | 20 | 10 | 5 | 8 | 3 | 0 | 1 | 3 |
14,102 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.PathType | from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from .json_schema import JsonSchemaValue
from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
import... | @_dataclasses.dataclass
class PathType:
def __get_pydantic_json_schema__(self, core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue:
pass
def __get_pydantic_core_schema__(self, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
pass
@st... | 13 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 0 | 5 | 2 | 0 | 3 | 0 | 7 | 7 | 56 | 8 | 48 | 17 | 34 | 0 | 29 | 11 | 21 | 3 | 0 | 1 | 12 |
14,103 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.PaymentCardNumber | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
from .warnings import PydanticDeprecatedSince20... | @deprecated('The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.', category=PydanticDeprecatedSince20)
class PaymentCardNumber(str):
'''Based on: https://en.wikipedia.o... | 15 | 6 | 11 | 1 | 9 | 2 | 3 | 0.16 | 1 | 5 | 2 | 0 | 2 | 1 | 7 | 73 | 101 | 13 | 77 | 28 | 63 | 12 | 56 | 22 | 48 | 8 | 2 | 2 | 19 |
14,104 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.Secret | from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from typing_extensions import Protocol, TypeAlias, TypeAliasType, deprecated, get_args, get_origin
from typing import TYPE_CHECKING, Annotated, Any, Callabl... |
class Secret(_SecretBase[SecretType]):
'''A generic base class used for defining a field with sensitive information that you do not want to be visible in logging or tracebacks.
You may either directly parametrize `Secret` with a type, or subclass from `Secret` with a parametrized type. The benefit of subclassi... | 5 | 1 | 15 | 1 | 13 | 1 | 3 | 1.76 | 1 | 5 | 1 | 0 | 1 | 0 | 2 | 9 | 158 | 32 | 46 | 12 | 41 | 81 | 22 | 11 | 18 | 5 | 2 | 3 | 9 |
14,105 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.SecretBytes | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
class SecretBytes(_SecretField[bytes]):
"""A bytes used for storing sensitive information that you do not want to be ... | null | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 2.43 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 10 | 31 | 7 | 7 | 5 | 4 | 17 | 7 | 5 | 4 | 1 | 3 | 0 | 2 |
14,106 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.SecretStr | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
class SecretStr(_SecretField[str]):
"""A string used for storing sensitive information that you do not want to be vis... | null | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 6.29 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 10 | 65 | 14 | 7 | 5 | 4 | 44 | 7 | 5 | 4 | 1 | 3 | 0 | 2 |
14,107 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.Strict | from annotated_types import BaseMetadata, MaxLen, MinLen
import dataclasses as _dataclasses
from ._internal import _fields, _internal_dataclass, _utils, _validators
@_dataclasses.dataclass
class Strict(_fields.PydanticMetadata, BaseMetadata):
"""!!! abstract "Usage Documentation"
[Strict Mode with `Annotat... | @_dataclasses.dataclass
class Strict(_fields.PydanticMetadata, BaseMetadata):
'''!!! abstract "Usage Documentation"
[Strict Mode with `Annotated` `Strict`](../concepts/strict_mode.md#strict-mode-with-annotated-strict)
A field metadata class to indicate that a field should be validated in strict mode.
... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 3.25 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 24 | 7 | 4 | 3 | 2 | 13 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
14,108 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.StringConstraints | import dataclasses as _dataclasses
from ._internal import _fields, _internal_dataclass, _utils, _validators
from re import Pattern
from collections.abc import Hashable, Iterator
from annotated_types import BaseMetadata, MaxLen, MinLen
import annotated_types
@_dataclasses.dataclass(frozen=True)
class StringConstraints(... | @_dataclasses.dataclass(frozen=True)
class StringConstraints(annotated_types.GroupedMetadata):
'''!!! abstract "Usage Documentation"
[`StringConstraints`](../concepts/fields.md#string-constraints)
A field metadata class to apply constraints to `str` types.
Use this class as an annotation via [`Annot... | 3 | 1 | 19 | 0 | 19 | 0 | 5 | 0.7 | 1 | 5 | 1 | 0 | 1 | 0 | 1 | 27 | 53 | 7 | 27 | 9 | 25 | 19 | 17 | 9 | 15 | 5 | 5 | 1 | 5 |
14,109 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.Tag | from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
import dataclasses as _dataclasses
from ._internal import _fields, _internal_dataclass, _utils, _validators
from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from .annotate... | @_dataclasses.dataclass(**_internal_dataclass.slots_true, frozen=True)
class Tag:
'''Provides a way to specify the expected tag to use for a case of a (callable) discriminated union.
Also provides a way to label a union case in error messages.
When using a callable `Discriminator`, attach a `Tag` to each ca... | 3 | 1 | 5 | 0 | 5 | 0 | 1 | 8.29 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 82 | 17 | 7 | 4 | 5 | 58 | 7 | 4 | 5 | 1 | 0 | 0 | 1 |
14,110 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types.UuidVersion | from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
from .json_schema import JsonSchemaValue
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
import dataclasses as _dataclasses
from ._internal import _fields, _internal_dataclass, _utils, _validators
from ty... | @_dataclasses.dataclass(**_internal_dataclass.slots_true)
class UuidVersion:
'''A field metadata class to indicate a [UUID](https://docs.python.org/3/library/uuid.html) version.
Use this class as an annotation via [`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated), as seen below.
... | 5 | 1 | 6 | 0 | 6 | 1 | 1 | 0.84 | 0 | 4 | 2 | 0 | 3 | 0 | 3 | 3 | 42 | 9 | 19 | 8 | 13 | 16 | 16 | 6 | 12 | 2 | 0 | 1 | 4 |
14,111 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types._AllowAnyJson | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
class _AllowAnyJson:
@classmethod
def... |
class _AllowAnyJson:
@classmethod
def __get_pydantic_core_schema__(cls, source_type: Any, handler: GetCoreSchemaHandler) -> CoreSchema:
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 5 | 0 | 5 | 4 | 2 | 0 | 4 | 3 | 2 | 1 | 0 | 0 | 1 |
14,112 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types._OnErrorOmit | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
class _OnErrorOmit:
@classmethod
def ... |
class _OnErrorOmit:
@classmethod
def __get_pydantic_core_schema__(cls, source_type: Any, handler: GetCoreSchemaHandler) -> CoreSchema:
pass | 3 | 0 | 5 | 0 | 2 | 3 | 1 | 0.75 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 7 | 0 | 4 | 3 | 1 | 3 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
14,113 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types._SecretBase | from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
class _SecretBase(Generic[SecretType]):
def __init__(self, secret_value: SecretType) -> None:
self._secret_value: SecretType = secret_value
def get_secret_value(self) -> SecretType:
""... |
class _SecretBase(Generic[SecretType]):
def __init__(self, secret_value: SecretType) -> None:
pass
def get_secret_value(self) -> SecretType:
'''Get the secret value.
Returns:
The secret value.
'''
pass
def __eq__(self, other: Any) -> bool:
pass... | 8 | 1 | 3 | 0 | 2 | 1 | 1 | 0.27 | 1 | 5 | 0 | 2 | 7 | 1 | 7 | 7 | 26 | 7 | 15 | 9 | 7 | 4 | 15 | 9 | 7 | 1 | 1 | 0 | 7 |
14,114 | samuelcolvin/pydantic | pydantic/types.py | pydantic.types._SecretField | from ._internal import _fields, _internal_dataclass, _utils, _validators
from typing import TYPE_CHECKING, Annotated, Any, Callable, ClassVar, Generic, Literal, TypeVar, Union, cast
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
from .json_schema import JsonSchemaValue
from .an... |
class _SecretField(_SecretBase[SecretType]):
@classmethod
def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
pass
def get_json_schema(_core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue:
... | 5 | 0 | 22 | 1 | 21 | 0 | 1 | 0.02 | 1 | 4 | 2 | 2 | 0 | 0 | 1 | 8 | 54 | 5 | 49 | 8 | 44 | 1 | 13 | 7 | 9 | 1 | 2 | 0 | 3 |
14,115 | samuelcolvin/pydantic | pydantic/v1/class_validators.py | pydantic.v1.class_validators.ValidatorGroup | from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union, overload
from itertools import chain
from pydantic.v1.utils import ROOT_KEY, in_ipython
from pydantic.v1.errors import ConfigError
class ValidatorGroup:
def __init__(self, validators: 'ValidatorListDict') -> ... |
class ValidatorGroup:
def __init__(self, validators: 'ValidatorListDict') -> None:
pass
def get_validators(self, name: str) -> Optional[Dict[str, Validator]]:
pass
def check_for_unused(self) -> None:
pass | 4 | 0 | 10 | 0 | 10 | 0 | 2 | 0.03 | 0 | 5 | 1 | 0 | 3 | 2 | 3 | 3 | 32 | 2 | 30 | 9 | 26 | 1 | 17 | 9 | 13 | 3 | 0 | 1 | 6 |
14,116 | samuelcolvin/pydantic | pydantic/v1/color.py | pydantic.v1.color.Color | from pydantic.v1.utils import Representation, almost_equal_floats
from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union, cast
from colorsys import hls_to_rgb, rgb_to_hls
from pydantic.v1.errors import ColorError
class Color(Representation):
__slots__ = ('_original', '_rgba')
def __init__(self, v... |
class Color(Representation):
def __init__(self, value: ColorType) -> None:
pass
@classmethod
def __modify_schema__(cls, field_schema: Dict[str, Any]) -> None:
pass
def original(self) -> ColorType:
'''
Original value passed to Color
'''
pass
def as_... | 18 | 6 | 8 | 0 | 6 | 2 | 2 | 0.41 | 1 | 12 | 1 | 0 | 13 | 2 | 15 | 22 | 143 | 20 | 90 | 29 | 72 | 37 | 73 | 26 | 57 | 4 | 1 | 3 | 32 |
14,117 | samuelcolvin/pydantic | pydantic/v1/color.py | pydantic.v1.color.RGBA | from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union, cast
class RGBA:
"""
Internal use only as a representation of a color.
"""
__slots__ = ('r', 'g', 'b', 'alpha', '_tuple')
def __init__(self, r: float, g: float, b: float, alpha: Optional[float]):
self.r = r
self.g... |
class RGBA:
'''
Internal use only as a representation of a color.
'''
def __init__(self, r: float, g: float, b: float, alpha: Optional[float]):
pass
def __getitem__(self, item: Any) -> Any:
pass | 3 | 1 | 5 | 1 | 4 | 0 | 1 | 0.3 | 0 | 2 | 0 | 0 | 2 | 5 | 2 | 2 | 17 | 4 | 10 | 9 | 7 | 3 | 10 | 9 | 7 | 1 | 0 | 0 | 2 |
14,118 | samuelcolvin/pydantic | pydantic/v1/config.py | pydantic.v1.config.BaseConfig | from pydantic.v1.utils import GetterDict
from pydantic.v1.typing import AnyArgTCallable, AnyCallable
from typing_extensions import Literal, Protocol
import json
from typing import TYPE_CHECKING, Any, Callable, Dict, ForwardRef, Optional, Tuple, Type, Union
class BaseConfig:
title: Optional[str] = None
anystr_l... |
class BaseConfig:
@classmethod
def get_field_info(cls, name: str) -> Dict[str, Any]:
'''
Get properties of FieldInfo from the `fields` property of the config class.
'''
pass
@classmethod
def prepare_field(cls, field: 'ModelField') -> None:
'''
Optional h... | 5 | 2 | 14 | 2 | 9 | 3 | 4 | 0.2 | 0 | 4 | 0 | 1 | 0 | 0 | 2 | 2 | 68 | 8 | 50 | 37 | 45 | 10 | 46 | 35 | 43 | 6 | 0 | 2 | 7 |
14,119 | samuelcolvin/pydantic | pydantic/v1/config.py | pydantic.v1.config.Extra | from enum import Enum
class Extra(str, Enum):
allow = 'allow'
ignore = 'ignore'
forbid = 'forbid' |
class Extra(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
14,120 | samuelcolvin/pydantic | pydantic/v1/dataclasses.py | pydantic.v1.dataclasses.DataclassProxy | import copy
from typing import TYPE_CHECKING, Any, Callable, ClassVar, Dict, Generator, Optional, Type, TypeVar, Union, overload
class DataclassProxy:
__slots__ = '__dataclass__'
def __init__(self, dc_cls: Type['Dataclass']) -> None:
object.__setattr__(self, '__dataclass__', dc_cls)
def __call__(... |
class DataclassProxy:
def __init__(self, dc_cls: Type['Dataclass']) -> None:
pass
def __call__(self, *args: Any, **kwargs: Any) -> Any:
pass
def __getattr__(self, name: str) -> Any:
pass
def __setattr__(self, __name: str, __value: Any) -> None:
pass
def __instan... | 8 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 4 | 0 | 0 | 7 | 0 | 7 | 7 | 24 | 7 | 17 | 9 | 9 | 0 | 17 | 9 | 9 | 1 | 0 | 1 | 7 |
14,121 | samuelcolvin/pydantic | pydantic/v1/decorator.py | pydantic.v1.decorator.ValidatedFunction | from pydantic.v1.errors import ConfigError
from pydantic.v1.utils import to_camel
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Type, TypeVar, Union, overload
from pydantic.v1 import validator
from pydantic.v1.main import BaseModel, create_model
from pydantic.v1.typing import ge... |
class ValidatedFunction:
def __init__(self, function: 'AnyCallableT', config: 'ConfigType'):
pass
def init_model_instance(self, *args: Any, **kwargs: Any) -> BaseModel:
pass
def call(self, *args: Any, **kwargs: Any) -> Any:
pass
def build_values(self, args: Tuple[Any, ...], ... | 18 | 0 | 23 | 3 | 19 | 1 | 5 | 0.05 | 0 | 14 | 2 | 0 | 6 | 6 | 6 | 6 | 205 | 31 | 170 | 61 | 151 | 9 | 143 | 55 | 128 | 13 | 0 | 3 | 51 |
14,122 | samuelcolvin/pydantic | pydantic/v1/env_settings.py | pydantic.v1.env_settings.BaseSettings | from pydantic.v1.main import BaseModel
from pydantic.v1.typing import StrPath, display_as_type, get_origin, is_union
from pydantic.v1.fields import ModelField
from typing import AbstractSet, Any, Callable, ClassVar, Dict, List, Mapping, Optional, Tuple, Type, Union
from pydantic.v1.utils import deep_update, lenient_iss... |
class BaseSettings(BaseModel):
'''
Base class for settings, allowing values to be overridden by environment variables.
This is useful in production for secrets you do not wish to save in code, it plays nicely with docker(-compose),
Heroku and any 12 factor app design.
'''
def __init__(__pydant... | 10 | 1 | 17 | 0 | 15 | 1 | 3 | 0.13 | 1 | 7 | 3 | 0 | 2 | 0 | 2 | 52 | 113 | 10 | 92 | 44 | 63 | 12 | 41 | 22 | 34 | 7 | 5 | 2 | 15 |
14,123 | samuelcolvin/pydantic | pydantic/v1/env_settings.py | pydantic.v1.env_settings.EnvSettingsSource | from typing import AbstractSet, Any, Callable, ClassVar, Dict, List, Mapping, Optional, Tuple, Type, Union
from pydantic.v1.utils import deep_update, lenient_issubclass, path_type, sequence_like
from pydantic.v1.typing import StrPath, display_as_type, get_origin, is_union
from pathlib import Path
from pydantic.v1.field... |
class EnvSettingsSource:
def __init__(self, env_file: Optional[DotenvType], env_file_encoding: Optional[str], env_nested_delimiter: Optional[str]=None, env_prefix_len: int=0):
pass
def __call__(self, settings: BaseSettings) -> Dict[str, Any]:
'''
Build environment variables suitable f... | 7 | 3 | 19 | 2 | 15 | 3 | 5 | 0.17 | 0 | 12 | 2 | 0 | 6 | 4 | 6 | 6 | 122 | 19 | 89 | 39 | 76 | 15 | 72 | 32 | 65 | 13 | 0 | 5 | 28 |
14,124 | samuelcolvin/pydantic | pydantic/v1/env_settings.py | pydantic.v1.env_settings.InitSettingsSource | from typing import AbstractSet, Any, Callable, ClassVar, Dict, List, Mapping, Optional, Tuple, Type, Union
class InitSettingsSource:
__slots__ = ('init_kwargs',)
def __init__(self, init_kwargs: Dict[str, Any]):
self.init_kwargs = init_kwargs
def __call__(self, settings: BaseSettings) -> Dict[str,... |
class InitSettingsSource:
def __init__(self, init_kwargs: Dict[str, Any]):
pass
def __call__(self, settings: BaseSettings) -> Dict[str, Any]:
pass
def __repr__(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 3 | 1 | 0 | 3 | 1 | 3 | 3 | 11 | 3 | 8 | 6 | 4 | 0 | 8 | 6 | 4 | 1 | 0 | 0 | 3 |
14,125 | samuelcolvin/pydantic | pydantic/v1/env_settings.py | pydantic.v1.env_settings.SecretsSettingsSource | from pathlib import Path
from pydantic.v1.typing import StrPath, display_as_type, get_origin, is_union
from typing import AbstractSet, Any, Callable, ClassVar, Dict, List, Mapping, Optional, Tuple, Type, Union
import warnings
from pydantic.v1.utils import deep_update, lenient_issubclass, path_type, sequence_like
class... |
class SecretsSettingsSource:
def __init__(self, secrets_dir: Optional[StrPath]):
pass
def __call__(self, settings: BaseSettings) -> Dict[str, Any]:
'''
Build fields from "secrets" files.
'''
pass
def __repr__(self) -> str:
pass | 4 | 1 | 15 | 2 | 11 | 1 | 4 | 0.11 | 0 | 6 | 2 | 0 | 3 | 1 | 3 | 3 | 49 | 10 | 35 | 13 | 31 | 4 | 31 | 12 | 27 | 10 | 0 | 5 | 12 |
14,126 | samuelcolvin/pydantic | pydantic/v1/env_settings.py | pydantic.v1.env_settings.SettingsError | class SettingsError(ValueError):
pass | class SettingsError(ValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
14,127 | samuelcolvin/pydantic | pydantic/v1/error_wrappers.py | pydantic.v1.error_wrappers.ErrorWrapper | from pydantic.v1.utils import Representation
from typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Sequence, Tuple, Type, Union
class ErrorWrapper(Representation):
__slots__ = ('exc', '_loc')
def __init__(self, exc: Exception, loc: Union[str, 'Loc']) -> None:
self.exc = exc
s... |
class ErrorWrapper(Representation):
def __init__(self, exc: Exception, loc: Union[str, 'Loc']) -> None:
pass
def loc_tuple(self) -> 'Loc':
pass
def __repr_args__(self) -> 'ReprArgs':
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 3 | 2 | 3 | 10 | 15 | 3 | 12 | 7 | 8 | 0 | 11 | 7 | 7 | 2 | 1 | 1 | 4 |
14,128 | samuelcolvin/pydantic | pydantic/v1/error_wrappers.py | pydantic.v1.error_wrappers.ValidationError | from typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Sequence, Tuple, Type, Union
from pydantic.v1.utils import Representation
from pydantic.v1.json import pydantic_encoder
import json
class ValidationError(Representation, ValueError):
__slots__ = ('raw_errors', 'model', '_error_cache')
def... |
class ValidationError(Representation, ValueError):
def __init__(self, errors: Sequence[ErrorList], model: 'ModelOrDc') -> None:
pass
def errors(self) -> List['ErrorDict']:
pass
def json(self, *, indent: Union[None, int, str]=2) -> str:
pass
def __str__(self) -> str:
... | 6 | 0 | 5 | 0 | 5 | 0 | 2 | 0.08 | 2 | 4 | 0 | 0 | 5 | 3 | 5 | 23 | 30 | 5 | 25 | 13 | 19 | 2 | 22 | 13 | 16 | 3 | 4 | 2 | 8 |
14,129 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.AnyStrMaxLengthError | class AnyStrMaxLengthError(PydanticValueError):
code = 'any_str.max_length'
msg_template = 'ensure this value has at most {limit_value} characters'
def __init__(self, *, limit_value: int) -> None:
super().__init__(limit_value=limit_value) | class AnyStrMaxLengthError(PydanticValueError):
def __init__(self, *, limit_value: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,130 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.AnyStrMinLengthError | class AnyStrMinLengthError(PydanticValueError):
code = 'any_str.min_length'
msg_template = 'ensure this value has at least {limit_value} characters'
def __init__(self, *, limit_value: int) -> None:
super().__init__(limit_value=limit_value) | class AnyStrMinLengthError(PydanticValueError):
def __init__(self, *, limit_value: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,131 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ArbitraryTypeError | from pydantic.v1.typing import display_as_type
from typing import TYPE_CHECKING, Any, Callable, Sequence, Set, Tuple, Type, Union
class ArbitraryTypeError(PydanticTypeError):
code = 'arbitrary_type'
msg_template = 'instance of {expected_arbitrary_type} expected'
def __init__(self, *, expected_arbitrary_ty... |
class ArbitraryTypeError(PydanticTypeError):
def __init__(self, *, expected_arbitrary_type: Type[Any]) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,132 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.BoolError | class BoolError(PydanticTypeError):
msg_template = 'value could not be parsed to a boolean' | class BoolError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,133 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.BytesError | class BytesError(PydanticTypeError):
msg_template = 'byte type expected' | class BytesError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,134 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.CallableError | class CallableError(PydanticTypeError):
msg_template = '{value} is not callable' | class CallableError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,135 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ClassError | class ClassError(PydanticTypeError):
code = 'class'
msg_template = 'a class is expected' | class ClassError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,136 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ColorError | class ColorError(PydanticValueError):
msg_template = 'value is not a valid color: {reason}' | class ColorError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,137 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ConfigError | class ConfigError(RuntimeError):
pass | class ConfigError(RuntimeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
14,138 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DataclassTypeError | class DataclassTypeError(PydanticTypeError):
code = 'dataclass'
msg_template = 'instance of {class_name}, tuple or dict expected' | class DataclassTypeError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,139 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DateError | class DateError(PydanticValueError):
msg_template = 'invalid date format' | class DateError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,140 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DateNotInTheFutureError | class DateNotInTheFutureError(PydanticValueError):
code = 'date.not_in_the_future'
msg_template = 'date is not in the future' | class DateNotInTheFutureError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,141 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DateNotInThePastError | class DateNotInThePastError(PydanticValueError):
code = 'date.not_in_the_past'
msg_template = 'date is not in the past' | class DateNotInThePastError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,142 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DateTimeError | class DateTimeError(PydanticValueError):
msg_template = 'invalid datetime format' | class DateTimeError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,143 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DecimalError | class DecimalError(PydanticTypeError):
msg_template = 'value is not a valid decimal' | class DecimalError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,144 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DecimalIsNotFiniteError | class DecimalIsNotFiniteError(PydanticValueError):
code = 'decimal.not_finite'
msg_template = 'value is not a valid decimal' | class DecimalIsNotFiniteError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,145 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DecimalMaxDigitsError | class DecimalMaxDigitsError(PydanticValueError):
code = 'decimal.max_digits'
msg_template = 'ensure that there are no more than {max_digits} digits in total'
def __init__(self, *, max_digits: int) -> None:
super().__init__(max_digits=max_digits) | class DecimalMaxDigitsError(PydanticValueError):
def __init__(self, *, max_digits: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,146 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DecimalMaxPlacesError | class DecimalMaxPlacesError(PydanticValueError):
code = 'decimal.max_places'
msg_template = 'ensure that there are no more than {decimal_places} decimal places'
def __init__(self, *, decimal_places: int) -> None:
super().__init__(decimal_places=decimal_places) | class DecimalMaxPlacesError(PydanticValueError):
def __init__(self, *, decimal_places: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,147 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DecimalWholeDigitsError | class DecimalWholeDigitsError(PydanticValueError):
code = 'decimal.whole_digits'
msg_template = 'ensure that there are no more than {whole_digits} digits before the decimal point'
def __init__(self, *, whole_digits: int) -> None:
super().__init__(whole_digits=whole_digits) | class DecimalWholeDigitsError(PydanticValueError):
def __init__(self, *, whole_digits: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,148 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DequeError | class DequeError(PydanticTypeError):
msg_template = 'value is not a valid deque' | class DequeError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,149 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DictError | class DictError(PydanticTypeError):
msg_template = 'value is not a valid dict' | class DictError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,150 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.DurationError | class DurationError(PydanticValueError):
msg_template = 'invalid duration format' | class DurationError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,151 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.EmailError | class EmailError(PydanticValueError):
msg_template = 'value is not a valid email address' | class EmailError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,152 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.EnumError | class EnumError(PydanticTypeError):
code = 'enum_instance'
msg_template = '{value} is not a valid Enum instance' | class EnumError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,153 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.EnumMemberError | class EnumMemberError(PydanticTypeError):
code = 'enum'
def __str__(self) -> str:
permitted = ', '.join((repr(v.value) for v in self.enum_values))
return f'value is not a valid enumeration member; permitted: {permitted}' | class EnumMemberError(PydanticTypeError):
def __str__(self) -> str:
pass | 2 | 0 | 3 | 0 | 3 | 1 | 1 | 0.2 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,154 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ExtraError | class ExtraError(PydanticValueError):
msg_template = 'extra fields not permitted' | class ExtraError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,155 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.FloatError | class FloatError(PydanticTypeError):
msg_template = 'value is not a valid float' | class FloatError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,156 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.FrozenSetError | class FrozenSetError(PydanticTypeError):
msg_template = 'value is not a valid frozenset' | class FrozenSetError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,157 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.FrozenSetMaxLengthError | class FrozenSetMaxLengthError(PydanticValueError):
code = 'frozenset.max_items'
msg_template = 'ensure this value has at most {limit_value} items'
def __init__(self, *, limit_value: int) -> None:
super().__init__(limit_value=limit_value) | class FrozenSetMaxLengthError(PydanticValueError):
def __init__(self, *, limit_value: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,158 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.FrozenSetMinLengthError | class FrozenSetMinLengthError(PydanticValueError):
code = 'frozenset.min_items'
msg_template = 'ensure this value has at least {limit_value} items'
def __init__(self, *, limit_value: int) -> None:
super().__init__(limit_value=limit_value) | class FrozenSetMinLengthError(PydanticValueError):
def __init__(self, *, limit_value: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,159 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.HashableError | class HashableError(PydanticTypeError):
msg_template = 'value is not a valid hashable' | class HashableError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,160 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPv4AddressError | class IPv4AddressError(PydanticValueError):
msg_template = 'value is not a valid IPv4 address' | class IPv4AddressError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,161 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPv4InterfaceError | class IPv4InterfaceError(PydanticValueError):
msg_template = 'value is not a valid IPv4 interface' | class IPv4InterfaceError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,162 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPv4NetworkError | class IPv4NetworkError(PydanticValueError):
msg_template = 'value is not a valid IPv4 network' | class IPv4NetworkError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,163 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPv6AddressError | class IPv6AddressError(PydanticValueError):
msg_template = 'value is not a valid IPv6 address' | class IPv6AddressError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,164 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPv6InterfaceError | class IPv6InterfaceError(PydanticValueError):
msg_template = 'value is not a valid IPv6 interface' | class IPv6InterfaceError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,165 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPv6NetworkError | class IPv6NetworkError(PydanticValueError):
msg_template = 'value is not a valid IPv6 network' | class IPv6NetworkError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,166 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPvAnyAddressError | class IPvAnyAddressError(PydanticValueError):
msg_template = 'value is not a valid IPv4 or IPv6 address' | class IPvAnyAddressError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,167 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPvAnyInterfaceError | class IPvAnyInterfaceError(PydanticValueError):
msg_template = 'value is not a valid IPv4 or IPv6 interface' | class IPvAnyInterfaceError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,168 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IPvAnyNetworkError | class IPvAnyNetworkError(PydanticValueError):
msg_template = 'value is not a valid IPv4 or IPv6 network' | class IPvAnyNetworkError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,169 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IntEnumError | class IntEnumError(PydanticTypeError):
code = 'int_enum_instance'
msg_template = '{value} is not a valid IntEnum instance' | class IntEnumError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,170 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IntegerError | class IntegerError(PydanticTypeError):
msg_template = 'value is not a valid integer' | class IntegerError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,171 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.InvalidByteSize | class InvalidByteSize(PydanticValueError):
msg_template = 'could not parse value and unit from byte string' | class InvalidByteSize(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,172 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.InvalidByteSizeUnit | class InvalidByteSizeUnit(PydanticValueError):
msg_template = 'could not interpret byte unit: {unit}' | class InvalidByteSizeUnit(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,173 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.InvalidDiscriminator | from typing import TYPE_CHECKING, Any, Callable, Sequence, Set, Tuple, Type, Union
class InvalidDiscriminator(PydanticValueError):
code = 'discriminated_union.invalid_discriminator'
msg_template = 'No match for discriminator {discriminator_key!r} and value {discriminator_value!r} (allowed values: {allowed_valu... |
class InvalidDiscriminator(PydanticValueError):
def __init__(self, *, discriminator_key: str, discriminator_value: Any, allowed_values: Sequence[Any]) -> None:
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 15 | 13 | 1 | 12 | 4 | 10 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,174 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.InvalidLengthForBrand | class InvalidLengthForBrand(PydanticValueError):
code = 'payment_card_number.invalid_length_for_brand'
msg_template = 'Length for a {brand} card must be {required_length}' | class InvalidLengthForBrand(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,175 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.IterableError | class IterableError(PydanticTypeError):
msg_template = 'value is not a valid iterable' | class IterableError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,176 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.JsonError | class JsonError(PydanticValueError):
msg_template = 'Invalid JSON' | class JsonError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,177 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.JsonTypeError | class JsonTypeError(PydanticTypeError):
code = 'json'
msg_template = 'JSON object must be str, bytes or bytearray' | class JsonTypeError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,178 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ListError | class ListError(PydanticTypeError):
msg_template = 'value is not a valid list' | class ListError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,179 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ListMaxLengthError | class ListMaxLengthError(PydanticValueError):
code = 'list.max_items'
msg_template = 'ensure this value has at most {limit_value} items'
def __init__(self, *, limit_value: int) -> None:
super().__init__(limit_value=limit_value) | class ListMaxLengthError(PydanticValueError):
def __init__(self, *, limit_value: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,180 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ListMinLengthError | class ListMinLengthError(PydanticValueError):
code = 'list.min_items'
msg_template = 'ensure this value has at least {limit_value} items'
def __init__(self, *, limit_value: int) -> None:
super().__init__(limit_value=limit_value) | class ListMinLengthError(PydanticValueError):
def __init__(self, *, limit_value: int) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,181 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.ListUniqueItemsError | class ListUniqueItemsError(PydanticValueError):
code = 'list.unique_items'
msg_template = 'the list has duplicated items' | class ListUniqueItemsError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,182 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.LuhnValidationError | class LuhnValidationError(PydanticValueError):
code = 'payment_card_number.luhn_check'
msg_template = 'card number is not luhn valid' | class LuhnValidationError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,183 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.MissingDiscriminator | class MissingDiscriminator(PydanticValueError):
code = 'discriminated_union.missing_discriminator'
msg_template = 'Discriminator {discriminator_key!r} is missing in value' | class MissingDiscriminator(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,184 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.MissingError | class MissingError(PydanticValueError):
msg_template = 'field required' | class MissingError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,185 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NoneIsAllowedError | class NoneIsAllowedError(PydanticTypeError):
code = 'none.allowed'
msg_template = 'value is not none' | class NoneIsAllowedError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,186 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NoneIsNotAllowedError | class NoneIsNotAllowedError(PydanticTypeError):
code = 'none.not_allowed'
msg_template = 'none is not an allowed value' | class NoneIsNotAllowedError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,187 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NotDigitError | class NotDigitError(PydanticValueError):
code = 'payment_card_number.digits'
msg_template = 'card number is not all digits' | class NotDigitError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,188 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NotNoneError | class NotNoneError(PydanticTypeError):
code = 'not_none'
msg_template = 'value is not None' | class NotNoneError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,189 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NumberNotFiniteError | class NumberNotFiniteError(PydanticValueError):
code = 'number.not_finite_number'
msg_template = 'ensure this value is a finite number' | class NumberNotFiniteError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
14,190 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NumberNotGeError | class NumberNotGeError(_NumberBoundError):
code = 'number.not_ge'
msg_template = 'ensure this value is greater than or equal to {limit_value}' | class NumberNotGeError(_NumberBoundError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,191 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NumberNotGtError | class NumberNotGtError(_NumberBoundError):
code = 'number.not_gt'
msg_template = 'ensure this value is greater than {limit_value}' | class NumberNotGtError(_NumberBoundError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,192 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NumberNotLeError | class NumberNotLeError(_NumberBoundError):
code = 'number.not_le'
msg_template = 'ensure this value is less than or equal to {limit_value}' | class NumberNotLeError(_NumberBoundError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,193 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NumberNotLtError | class NumberNotLtError(_NumberBoundError):
code = 'number.not_lt'
msg_template = 'ensure this value is less than {limit_value}' | class NumberNotLtError(_NumberBoundError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,194 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.NumberNotMultipleError | from typing import TYPE_CHECKING, Any, Callable, Sequence, Set, Tuple, Type, Union
from decimal import Decimal
class NumberNotMultipleError(PydanticValueError):
code = 'number.not_multiple'
msg_template = 'ensure this value is a multiple of {multiple_of}'
def __init__(self, *, multiple_of: Union[int, floa... |
class NumberNotMultipleError(PydanticValueError):
def __init__(self, *, multiple_of: Union[int, float, Decimal]) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 15 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
14,195 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.PathError | class PathError(PydanticTypeError):
msg_template = 'value is not a valid path' | class PathError(PydanticTypeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
14,196 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.PathNotADirectoryError | class PathNotADirectoryError(_PathValueError):
code = 'path.not_a_directory'
msg_template = 'path "{path}" does not point to a directory' | class PathNotADirectoryError(_PathValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,197 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.PathNotAFileError | class PathNotAFileError(_PathValueError):
code = 'path.not_a_file'
msg_template = 'path "{path}" does not point to a file' | class PathNotAFileError(_PathValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,198 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.PathNotExistsError | class PathNotExistsError(_PathValueError):
code = 'path.not_exists'
msg_template = 'file or directory at path "{path}" does not exist' | class PathNotExistsError(_PathValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
14,199 | samuelcolvin/pydantic | pydantic/v1/errors.py | pydantic.v1.errors.PatternError | class PatternError(PydanticValueError):
code = 'regex_pattern'
msg_template = 'Invalid regular expression' | class PatternError(PydanticValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.