MCPcopy
hub / github.com/pydantic/pydantic / ConfigDict

Class ConfigDict

pydantic/v1/config.py:46–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 from typing_extensions import TypedDict
45
46 class ConfigDict(TypedDict, total=False):
47 title: Optional[str]
48 anystr_lower: bool
49 anystr_strip_whitespace: bool
50 min_anystr_length: int
51 max_anystr_length: Optional[int]
52 validate_all: bool
53 extra: Extra
54 allow_mutation: bool
55 frozen: bool
56 allow_population_by_field_name: bool
57 use_enum_values: bool
58 fields: Dict[str, Union[str, Dict[str, str]]]
59 validate_assignment: bool
60 error_msg_templates: Dict[str, str]
61 arbitrary_types_allowed: bool
62 orm_mode: bool
63 getter_dict: Type[GetterDict]
64 alias_generator: Optional[Callable[[str], str]]
65 keep_untouched: Tuple[type, ...]
66 schema_extra: Union[Dict[str, object], 'SchemaExtraCallable']
67 json_loads: Callable[[str], object]
68 json_dumps: AnyArgTCallable[str]
69 json_encoders: Dict[Type[object], AnyCallable]
70 underscore_attrs_are_private: bool
71 allow_inf_nan: bool
72 copy_on_model_validation: Literal['none', 'deep', 'shallow']
73 # whether dataclass `__post_init__` should be run after validation
74 post_init_call: Literal['before_validation', 'after_validation']
75
76else:
77 ConfigDict = dict # type: ignore

Callers 3

for_modelMethod · 0.50
_config.pyFile · 0.50
prepare_configFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected