# The public API of datamodel_code_generator, written from its source by tests/main/public_api_record.py.

[datamodel_code_generator]
submodules: __main__, agent_skill, arguments, base_config, cli_options, config, deprecations, dynamic, enums, experimental, format, http, imports, input_model, input_model_result, json_config, model, model_metadata, parser, preset, preset_names, prompt, prompt_data, python_literal, reference, remote_lock, resources, types, util, validators, watch, watch_dependencies
__all__ = [
    'DEFAULT_FORMATTERS',
    'DEFAULT_SHARED_MODULE_NAME',
    'MAX_VERSION',
    'MIN_VERSION',
    'AliasGenerator',
    'AllExportsCollisionStrategy',
    'AllExportsScope',
    'AllOfClassHierarchy',
    'AllOfMergeMode',
    'AsyncAPIVersion',
    'ClassNameAffixScope',
    'ClientAsyncAPIPerspective',
    'ClientBodyArguments',
    'ClientSignatureStyle',
    'ClientType',
    'CollapseRootModelsNameStrategy',
    'ConstructorFieldOrder',
    'CustomFileHeaderMode',
    'DanglingRefWarning',
    'DateClassType',
    'DatetimeClassType',
    'DefaultPutDict',
    'DefaultValueType',
    'DefaultValueTypeWarning',
    'DocumentationAnnotationWarning',
    'DynamicModule',
    'Error',
    'FieldTypeCollisionStrategy',
    'GeneratedModules',
    'GraphQLScope',
    'HTTPBackend',
    'InputFileType',
    'InputModelRefStrategy',
    'InvalidClassNameError',
    'InvalidFileFormatError',
    'JsonSchemaVersion',
    'LeftoverFilesWarning',
    'LiteralType',
    'ModuleSplitMode',
    'NamingHintWarning',
    'NamingStrategy',
    'OpenAPIAsDefinitions',
    'OpenAPIScope',
    'OpenAPIVersion',
    'OpenEnums',
    'ProtobufVersion',
    'PythonVersion',
    'PythonVersionMin',
    'ReadOnlyWriteOnlyModelType',
    'ReuseScope',
    'SchemaParseError',
    'SchemaResourceRefWarning',
    'SchemaValidatorType',
    'ServerBodyMode',
    'ServerHandlerMode',
    'ServerLayout',
    'ServerType',
    'TargetPydanticVersion',
    'VersionMode',
    'XMLSchemaVersion',
    'clear_dynamic_models_cache',
    'detect_jsonschema_version',
    'detect_openapi_version',
    'detect_xmlschema_version',
    'enable_parsed_source_cache',
    'generate',
    'generate_dynamic_models',
    'generate_dynamic_module',
    'GenerateConfig',
    'load_pyproject_config',
]
AliasGenerator = datamodel_code_generator.enums.AliasGenerator
AllExportsCollisionStrategy = datamodel_code_generator.enums.AllExportsCollisionStrategy
AllExportsScope = datamodel_code_generator.enums.AllExportsScope
AllOfClassHierarchy = datamodel_code_generator.enums.AllOfClassHierarchy
AllOfMergeMode = datamodel_code_generator.enums.AllOfMergeMode
AsyncAPIVersion = datamodel_code_generator.enums.AsyncAPIVersion
ClassNameAffixScope = datamodel_code_generator.enums.ClassNameAffixScope
ClientAsyncAPIPerspective = datamodel_code_generator.enums.ClientAsyncAPIPerspective
ClientBodyArguments = datamodel_code_generator.enums.ClientBodyArguments
ClientSignatureStyle = datamodel_code_generator.enums.ClientSignatureStyle
ClientType = datamodel_code_generator.enums.ClientType
CodeFormatter = datamodel_code_generator.format.CodeFormatter  [lazy]
CollapseRootModelsNameStrategy = datamodel_code_generator.enums.CollapseRootModelsNameStrategy
ConstructorFieldOrder = datamodel_code_generator.enums.ConstructorFieldOrder
CustomFileHeaderMode = datamodel_code_generator.enums.CustomFileHeaderMode
DEFAULT_BASE_CLASS: str = 'pydantic.BaseModel'
DEFAULT_FORMATTERS: tuple[Formatter, ...] = (Formatter.BLACK, Formatter.ISORT)  [lazy]
DEFAULT_MAX_VARIABLE_LENGTH: int = 100
DEFAULT_SHARED_MODULE_NAME = datamodel_code_generator.enums.DEFAULT_SHARED_MODULE_NAME
class DanglingRefWarning(UserWarning)
DataModelType = datamodel_code_generator.enums.DataModelType
DataclassArguments = datamodel_code_generator.enums.DataclassArguments
DateClassType = datamodel_code_generator.format.DateClassType  [lazy]
DatetimeClassType = datamodel_code_generator.format.DatetimeClassType  [lazy]
DefaultPutDict = datamodel_code_generator.parser.DefaultPutDict
DefaultValueType = datamodel_code_generator.enums.DefaultValueType
class DefaultValueTypeWarning(UserWarning)
class DocumentationAnnotationWarning(UserWarning)
DynamicModule = datamodel_code_generator.dynamic.DynamicModule  [lazy]
class Error(Exception)
    def __init__(self, message: str) -> None
    def __str__(self) -> str
    self.message
FieldTypeCollisionStrategy = datamodel_code_generator.enums.FieldTypeCollisionStrategy
Formatter = datamodel_code_generator.format.Formatter  [lazy]
GenerateConfig = datamodel_code_generator.config.GenerateConfig  [lazy]
GeneratedModules: TypeAlias = dict[tuple[str, ...], str]
GraphQLScope = datamodel_code_generator.enums.GraphQLScope
HTTPBackend = datamodel_code_generator.enums.HTTPBackend
InputFileType = datamodel_code_generator.enums.InputFileType
InputModelRefStrategy = datamodel_code_generator.enums.InputModelRefStrategy
class InvalidClassNameError(Error)
    def __init__(self, class_name: str) -> None
    self.class_name
class InvalidFileFormatError(Error)
    def __init__(self, original_error: Exception, input_file_type: InputFileType | None=None, *, source: str | Path | None=None) -> None
    self.original_error
    self.input_file_type
    self.source
JSON_SCHEMA_URLS: tuple[str, ...] = ('http://json-schema.org/', 'https://json-schema.org/')
JsonSchemaVersion = datamodel_code_generator.enums.JsonSchemaVersion
class LeftoverFilesWarning(UserWarning)
LiteralType = datamodel_code_generator.parser.LiteralType
MAX_VERSION = datamodel_code_generator.enums.MAX_VERSION
MIN_VERSION = datamodel_code_generator.enums.MIN_VERSION
ModuleSplitMode = datamodel_code_generator.enums.ModuleSplitMode
class NamingHintWarning(UserWarning)
NamingStrategy = datamodel_code_generator.enums.NamingStrategy
OpenAPIAsDefinitions = datamodel_code_generator.enums.OpenAPIAsDefinitions
OpenAPIScope = datamodel_code_generator.enums.OpenAPIScope
OpenAPIVersion = datamodel_code_generator.enums.OpenAPIVersion
OpenEnums = datamodel_code_generator.enums.OpenEnums
PROCESS_STATE_LOCK = RLock()
ParserConfigT = TypeVar('ParserConfigT', bound='ParserConfig')
ProtobufVersion = datamodel_code_generator.enums.ProtobufVersion
PythonVersion = datamodel_code_generator.format.PythonVersion  [lazy]
PythonVersionMin = datamodel_code_generator._format_types.PythonVersion.PY_310  [lazy]
RAW_DATA_TYPES: list[InputFileType] = [kind for kind, row in _INPUT_TYPES.items() if row.genson or row.graphql]
    uses _INPUT_TYPES: Final[dict[InputFileType, _InputTypeRow]] = {InputFileType.Auto: _JSON_SCHEMA_ROW._replace(dict_refusal='input_file_type=Auto is not supported for dict input. Please specify input_file_type explicitly (e.g., InputFileType.JsonSchema).'), InputFileType.OpenAPI: _InputTypeRow('openapi.OpenAPIParser', ('openapi_version', OpenAPIVersion, 'OpenAPI'), api_parser='openapi_scope.ApiOpenAPIParser'), InputFileType.AsyncAPI: _InputTypeRow('asyncapi.AsyncAPIParser', ('asyncapi_version', AsyncAPIVersion, 'AsyncAPI')), InputFileType.JsonSchema: _JSON_SCHEMA_ROW, InputFileType.MCPTools: _JSON_SCHEMA_ROW, InputFileType.XMLSchema: _InputTypeRow('xmlschema.XMLSchemaParser', ('xmlschema_version', XMLSchemaVersion, 'XML Schema'), datetime_class=None, dict_refusal='Dict input is not supported for xmlschema. Provide XSD text, file path, or URL input.'), InputFileType.Protobuf: _InputTypeRow('protobuf.ProtobufParser', ('protobuf_version', ProtobufVersion, 'Protobuf'), dict_refusal='Dict input is not supported for protobuf. Provide .proto text, file path, or URL input.', skips_root_model=True), InputFileType.Avro: _InputTypeRow('avro.AvroParser', '--schema-version is not supported for avro because Avro schemas do not carry a version marker'), InputFileType.Json: _JSON_SCHEMA_ROW._replace(dict_refusal=_text_only_dict_refusal('json'), genson=True), InputFileType.Yaml: _JSON_SCHEMA_ROW._replace(dict_refusal=_text_only_dict_refusal('yaml'), genson=True), InputFileType.Dict: _JSON_SCHEMA_ROW._replace(genson=True), InputFileType.CSV: _JSON_SCHEMA_ROW._replace(dict_refusal=_text_only_dict_refusal('csv'), genson=True), InputFileType.GraphQL: _InputTypeRow('graphql.GraphQLParser', '--schema-version is not supported for graphql', datetime_class='datetime', dict_refusal='Dict input is not supported for GraphQL. GraphQL requires text input (SDL format).', graphql=True)}
    uses _JSON_SCHEMA_ROW = _InputTypeRow('jsonschema.JsonSchemaParser')
ReadOnlyWriteOnlyModelType = datamodel_code_generator.enums.ReadOnlyWriteOnlyModelType
ReuseScope = datamodel_code_generator.enums.ReuseScope
class SchemaFetchError(Error)
class SchemaParseError(Error)
    def __init__(self, message: str, path: list[str] | None=None, original_error: Exception | None=None) -> None
    self.path
    self.original_error
class SchemaResourceRefWarning(UserWarning)
SchemaValidatorType = datamodel_code_generator.enums.SchemaValidatorType
ServerBodyMode = datamodel_code_generator.enums.ServerBodyMode
ServerHandlerMode = datamodel_code_generator.enums.ServerHandlerMode
ServerLayout = datamodel_code_generator.enums.ServerLayout
ServerType = datamodel_code_generator.enums.ServerType
T = TypeVar('T')
TargetPydanticVersion = datamodel_code_generator.enums.TargetPydanticVersion
UnionMode = datamodel_code_generator.enums.UnionMode  [lazy]
VersionMode = datamodel_code_generator.enums.VersionMode
XMLSchemaVersion = datamodel_code_generator.enums.XMLSchemaVersion
YamlScalar: TypeAlias = str | int | float | bool | None
YamlValue = TypeAliasType('YamlValue', 'dict[str, YamlValue] | list[YamlValue] | YamlScalar')
@_lru_cache(maxsize=256)
def cached_path_exists(path: Path) -> bool
@contextlib.contextmanager
def chdir(path: Path | None) -> Generator[None]
clear_dynamic_models_cache = datamodel_code_generator.dynamic.clear_dynamic_models_cache  [lazy]
def current_timestamp() -> str
    # identity datamodel_code_generator._generation_timestamp.current_timestamp
detect_jsonschema_version = datamodel_code_generator.parser.schema_version.detect_jsonschema_version  [lazy]
detect_openapi_version = datamodel_code_generator.parser.schema_version.detect_openapi_version  [lazy]
def detect_xmlschema_version(source: Any) -> XMLSchemaVersion
def enable_debug_message() -> None
def enable_parsed_source_cache() -> Callable[[], None]
def generate(input_: Path | str | ParseResult | Mapping[str, Any] | list[Any], *, config: GenerateConfig | None=None, **options: Unpack[GenerateConfigDict]) -> str | GeneratedModules | None
generate_dynamic_models = datamodel_code_generator.dynamic.generate_dynamic_models  [lazy]
generate_dynamic_module = datamodel_code_generator.dynamic.generate_dynamic_module  [lazy]
def get_first_file(path: Path, encoding: str='utf-8') -> Path
def get_version() -> str
@contextmanager
def held() -> Generator[Callable[[], None], None, None]
    # identity datamodel_code_generator._warning_control.held
def infer_input_type(text: str) -> InputFileType
inferred_message = 'The input file type was determined to be: {}\nThis can be specified explicitly with the `--input-file-type` option.'
inferred_swagger_2_message = 'The input looks like a Swagger 2.0 document, which is read as data; its definitions are read as JSON Schema with `--input-file-type jsonschema`.'
def is_asyncapi(data: Mapping[str, Any]) -> bool
def is_openapi(data: Mapping[str, Any]) -> bool
def is_schema(data: dict) -> bool
def is_swagger_2(data: Mapping[str, Any]) -> bool
def load_data(text: str) -> dict[str, YamlValue]
def load_data_from_path(path: Path, encoding: str) -> dict[str, YamlValue]
def load_pyproject_config(path: Path | str | None=None, profile: str | None=None, *, overrides: GenerateConfig | Mapping[str, Any] | None=None) -> GenerateConfig  [lazy]
    # identity datamodel_code_generator._project_config.load_pyproject_config
def load_text_data(text: str, *, mapping: bool) -> YamlValue
    # identity datamodel_code_generator._source.load_text_data
def load_yaml(stream: str | TextIO) -> YamlValue
def load_yaml_dict(stream: str | TextIO) -> dict[str, YamlValue]
def load_yaml_dict_from_path(path: Path, encoding: str) -> dict[str, YamlValue]
@contextmanager
def quiet(category: type[Warning]=Warning) -> Generator[None, None, None]
    # identity datamodel_code_generator._warning_control.quiet
def redact_path(parts: Iterable[str]) -> str
    # identity datamodel_code_generator._url_redaction.redact_path
def redact_url(text: str) -> str
    # identity datamodel_code_generator._url_redaction.redact_url
resolve_use_type_checking_imports = datamodel_code_generator.format.resolve_use_type_checking_imports  [lazy]
def snooper_to_methods() -> Callable[..., Any]

[datamodel_code_generator.__main__]
BATCH_COMMAND_ONLY_CONFIG_FIELDS: frozenset[str] = frozenset({'list_deprecations', 'list_experimental'})
BATCH_OUTER_CONFIG_FIELDS: frozenset[str] = frozenset({'watch', 'watch_delay'})
BATCH_UNSAFE_CLI_FIELDS: frozenset[str] = frozenset({'input', 'input_model', 'output', 'url'})
class BatchPlan(NamedTuple)
    jobs: tuple[JobPlan, ...]
    watch: bool
    watch_delay: float
    pyproject_path: Path
class ComparisonDifference(NamedTuple)
    kind: Literal['changed', 'missing', 'extra', 'added', 'removed']
    path: str
    message: str | None = None
    diff: str | None = None
Config = lazy _get_config_class()  [lazy]
    | from pydantic import ConfigDict, Field, PrivateAttr, ValidationInfo, field_validator, model_validator
    | from typing_extensions import Self
    | from datamodel_code_generator._run_record import RunOptions
    | from datamodel_code_generator.base_config import BaseGenerateConfig
    | class Config(BaseGenerateConfig)
    |     model_config = ConfigDict(extra='ignore', arbitrary_types_allowed=True, protected_namespaces=(), defer_build=True)
    |     def get(self, item: str) -> Any
    |     def __getitem__(self, item: str) -> Any
    |     @classmethod
    |     def get_fields(cls) -> dict[str, Any]
    |     @field_validator(*JSON_CONFIG_FIELDS, mode='before')
    |     @classmethod
    |     def validate_json_config(cls, value: Any, info: ValidationInfo) -> Any
    |     @field_validator(*PATH_FIELD_NAMES, mode='before')
    |     @classmethod
    |     def validate_path(cls, value: Any, info: ValidationInfo) -> Path | str | None
    |     @field_validator('url', mode='before')
    |     @classmethod
    |     def validate_url(cls, value: Any) -> ParseResult | None
    |     @field_validator('http_headers', mode='before')
    |     @classmethod
    |     def validate_http_headers(cls, value: Any) -> list[tuple[str, str]] | None
    |     @field_validator('http_query_parameters', mode='before')
    |     @classmethod
    |     def validate_http_query_parameters(cls, value: Any) -> list[tuple[str, str]] | None
    |     @model_validator(mode='before')
    |     @classmethod
    |     def split_additional_imports(cls, values: dict[str, Any]) -> dict[str, Any]
    |     @model_validator(mode='before')
    |     @classmethod
    |     def validate_custom_formatters(cls, values: dict[str, Any]) -> dict[str, Any]
    |     @model_validator(mode='before')
    |     @classmethod
    |     def validate_naming_strategy_migration(cls, values: dict[str, Any]) -> dict[str, Any]
    |     @model_validator(mode='before')
    |     @classmethod
    |     def validate_allow_extra_fields_migration(cls, values: dict[str, Any]) -> dict[str, Any]
    |     @model_validator(mode='before')
    |     @classmethod
    |     def validate_class_decorators(cls, values: dict[str, Any]) -> dict[str, Any]
    |     @model_validator(mode='before')
    |     @classmethod
    |     def validate_external_ref_mapping(cls, values: dict[str, Any]) -> dict[str, Any]
    |     @model_validator(mode='after')
    |     def validate_output_datetime_class(self: Self) -> Self
    |     @model_validator(mode='after')
    |     def validate_alias_generator(self: Self) -> Self
    |     @model_validator(mode='after')
    |     def validate_cli_option_relations(self: Self) -> Self
    |     @model_validator(mode='after')
    |     def validate_root(self: Self) -> Self
    |     @field_validator('input_model', mode='before')
    |     @classmethod
    |     def coerce_input_model_to_list(cls, v: str | list[str] | None) -> list[str] | None
    |     @field_validator('class_name_affix_scope', mode='before')
    |     @classmethod
    |     def validate_class_name_affix_scope(cls, v: str | ClassNameAffixScope | None) -> ClassNameAffixScope
    |     @field_validator('schema_validator_base_class_name')
    |     @classmethod
    |     def validate_schema_validator_base_class_name(cls, v: str | None) -> str | None
    |     input: Optional[Union[Path, str]] = None
    |     input_model: Optional[list[str]] = None
    |     input_model_ref_strategy: Optional[InputModelRefStrategy] = None
    |     input_file_type: InputFileType = InputFileType.Auto
    |     output_model_type: DataModelType = DataModelType.PydanticV2BaseModel
    |     output: Optional[Path] = None
    |     check: bool = False
    |     diff_against: Optional[Path] = None
    |     repair_invalid_dotted_stdout: bool = Field(default=False, exclude=True)
    |     forced_invalid_dotted_stdout_repair_modules: tuple[tuple[str, ...], ...] = Field(default=(), exclude=True)
    |     debug: bool = False
    |     disable_warnings: bool = False
    |     extra_template_data: Mapping[str, dict[str, Any]] | None = None
    |     validators: Optional[ValidatorsConfigValue] = None
    |     aliases: Optional[Mapping[str, str | list[str]]] = None
    |     serialization_aliases: Optional[Mapping[str, str]] = None
    |     default_values: Optional[Mapping[str, Any]] = None
    |     use_default: bool = False
    |     force_optional: bool = False
    |     url: Optional[ParseResult] = None
    |     strict_types: list[StrictTypes] = Field(default_factory=list)
    |     openapi_scopes: Optional[list[OpenAPIScope]] = Field(default_factory=lambda: _openapi_scopes_or_default(None))
    |     custom_formatters_kwargs: Optional[dict[str, str]] = None
    |     watch: bool = False
    |     watch_delay: float = DEFAULT_WATCH_DELAY
    |         uses DEFAULT_WATCH_DELAY: Final = 0.5
    |     list_deprecations: Optional[str] = None
    |     list_experimental: Optional[str] = None
    |     def merge_args(self, args: Namespace) -> None
    | Config.__qualname__ = 'Config'
    | Config.__module__ = 'datamodel_code_generator.__main__'
    | globals()['Config'] = Config
    | return Config
class DirectoryChangedFile(NamedTuple)
    path: str
    diff_lines: list[str]
EXCLUDED_CONFIG_OPTIONS: frozenset[str] = COMMAND_DESTS | {'check', 'diff_against', 'debug', 'disable_warnings', 'list_deprecations', 'list_experimental', 'watch', 'watch_delay'}
    uses COMMAND_DESTS: Final = frozenset((option.dest for option in OPTIONS if not option.config))
    uses OPTIONS: Final[tuple[Option, ...]] = <tuple of 318>
    uses JSON_SCHEMA_NAMES: Final = tuple(_JSON_SCHEMAS)
    uses DEFAULT_WATCH_DELAY: Final = 0.5
    uses _JSON_SCHEMAS: Final[Mapping[str, _JsonSchemaSource]] = MappingProxyType({'config': _JsonSchemaSource('json_config', 'json_config_json_schema', 'argv'), 'generate-prompt': _JsonSchemaSource('prompt', 'generate_prompt_json_schema', 'parsed'), 'generation': _JsonSchemaSource('_structured_output', 'generation_output_json_schema', 'argv'), 'model-metadata': _JsonSchemaSource('model_metadata', 'model_metadata_json_schema', 'argv'), 'recommend-options': _JsonSchemaSource('_structured_output', 'recommend_options_json_schema', 'main'), 'structured-output': _JsonSchemaSource('_structured_output', 'structured_output_json_schema', 'argv')})
class Exit(IntEnum)
    OK = _ExitCode.OK
    DIFF = _ExitCode.DIFF
    ERROR = _ExitCode.ERROR
    KeyboardInterrupt = _ExitCode.INTERRUPTED
class GenerationRunContext(NamedTuple)
    generation_timestamp: str
    config: Config
    extra_template_data: defaultdict[str, dict[str, Any]] | None
    aliases: Mapping[str, str | list[str]] | None
    serialization_aliases: Mapping[str, str] | None
    command_line: str | None
    custom_formatters_kwargs: dict[str, str] | None
    settings_path: Path | None
    validators: Mapping[str, ModelValidators] | None
    default_value_overrides: Mapping[str, Any] | None
    def run(self, input_: Path | str | ParseResult | Mapping[str, Any], output: Path | None, *, input_filename: str) -> str | Mapping[tuple[str, ...], str] | None
class JobPlan(NamedTuple)
    name: str
    config: Config
    pyproject_path: Path
    resolved_output_root: Path | None
    resolved_output_parent: Path | None
    resolved_model_metadata_root: Path | None
    resolved_model_metadata_parent: Path | None
class OutputComparison(NamedTuple)
    differences: list[ComparisonDifference]
    content: str
class OutputComparisonOptions(NamedTuple)
    is_directory_output: bool
    input_diff: bool = False
    single_file_display_path: str | None = None
    directory_display_path: str | None = None
    def directory_file_path(self, path: Path) -> str
    @property
    def fromfile_suffix(self) -> str
    @property
    def tofile_suffix(self) -> str
OutputComparisonPolicy: TypeAlias = tuple[Literal['added', 'missing'], str, str, Literal['extra', 'removed'], str]
REDACTED_COMMAND_ARGUMENT = '<redacted>'
SENSITIVE_COMMAND_OPTIONS: frozenset[str] = frozenset(map(option_flag, SENSITIVE_FIELDS))
    uses SENSITIVE_FIELDS: Final = frozenset({'http_headers', 'http_query_parameters'})
def generate_cli_command(config: dict[str, TomlValue]) -> str
def generate_pyproject_config(args: Namespace) -> str
help_text = arg_parser.format_help()  [if not any((arg.startswith('--rec') for arg in sys.argv[1:])) and any((arg.startswith(('--generate-prompt', '--output-format-json-schema=')) or arg == '--output-format-json-schema' for arg in sys.argv[1:])); if not steps_aside and schema_output_name is None and (namespace.generate_prompt is not None)]
def is_supported_in_black(python_version: PythonVersion) -> bool
def main(args: Sequence[str] | None=None) -> Exit
prompt_output = generate_prompt(namespace, help_text, arg_parser)  [if not any((arg.startswith('--rec') for arg in sys.argv[1:])) and any((arg.startswith(('--generate-prompt', '--output-format-json-schema=')) or arg == '--output-format-json-schema' for arg in sys.argv[1:])); if not steps_aside and schema_output_name is None and (namespace.generate_prompt is not None)]
def run_generate_from_config(config: Config, input_: Path | str | ParseResult | Mapping[str, Any], output: Path | None, extra_template_data: defaultdict[str, dict[str, Any]] | None, aliases: Mapping[str, str | list[str]] | None, serialization_aliases: Mapping[str, str] | None, command_line: str | None, custom_formatters_kwargs: dict[str, str] | None, settings_path: Path | None=None, validators: Mapping[str, ModelValidators] | None=None, default_value_overrides: Mapping[str, Any] | None=None, input_filename: str | None=None, generation_timestamp: str | None=None, logical_output: Path | None=None) -> str | Mapping[tuple[str, ...], str] | None
schema_output_name = <match target>  [case [_, '--output-format-json-schema', schema_output_name] if _json_schema_path(schema_output_name) == 'argv']
schema_output_name = schema_output_option.partition('=')[2]  [case [_, schema_output_option] if schema_output_option.startswith('--output-format-json-schema=') and _json_schema_path((schema_output_name := schema_output_option.partition('=')[2])) == 'argv'; if body]
schema_output_name = datamodel_code_generator.arguments.namespace.output_format_json_schema  [if not any((arg.startswith('--rec') for arg in sys.argv[1:])) and any((arg.startswith(('--generate-prompt', '--output-format-json-schema=')) or arg == '--output-format-json-schema' for arg in sys.argv[1:]))]
schema_output_option = <match target>  [case [_, schema_output_option] if schema_output_option.startswith('--output-format-json-schema=') and _json_schema_path((schema_output_name := schema_output_option.partition('=')[2])) == 'argv']
def sig_int_handler(_: int, __: Any) -> None
steps_aside = _skill_options_given(namespace)  [if not any((arg.startswith('--rec') for arg in sys.argv[1:])) and any((arg.startswith(('--generate-prompt', '--output-format-json-schema=')) or arg == '--output-format-json-schema' for arg in sys.argv[1:]))]

[datamodel_code_generator.agent_skill]
AgentName = Literal['codex', 'claude-code']
class AgentSkillError(Exception)
SKILL_NAME = 'datamodel-code-generator'
SkillScope = Literal['project', 'user']
def install_agent_skill(agent: AgentName, scope: SkillScope, *, overwrite: bool, cwd: Path | None=None) -> Path

[datamodel_code_generator.arguments]
__all__ = [
    'DEFAULT_ENCODING',
    'arg_parser',
    'namespace',
]
DEFAULT_ENCODING: Final = 'utf-8'
class SortingHelpFormatter(RawDescriptionHelpFormatter)
    def add_arguments(self, actions: Iterable[Action]) -> None
    def start_section(self, heading: str | None) -> None
class SuggestingArgumentParser(ArgumentParser)
    def parse_args(self, args: Iterable[str] | None=None, namespace: Namespace | None=None) -> Namespace
arg_parser = SuggestingArgumentParser(usage='\n  datamodel-codegen [options]', description='Generate Python data models from schema definitions or structured data\n\nFor detailed usage, see: https://datamodel-code-generator.koxudaxi.dev', epilog='Documentation: https://datamodel-code-generator.koxudaxi.dev\nAgent skill: https://datamodel-code-generator.koxudaxi.dev/coding-agent-skill/\nOption recommendations: datamodel-codegen --input SCHEMA --recommend-options (experimental)\nGitHub: https://github.com/datamodel-code-generator/datamodel-code-generator', formatter_class=SortingHelpFormatter, add_help=False)
namespace = Namespace()

[datamodel_code_generator.base_config]
__all__ = [
    'BaseGenerateConfig',
]
class BaseGenerateConfig(BaseModel)
    model_config = ConfigDict(extra='forbid', arbitrary_types_allowed=True, protected_namespaces=(), defer_build=True)
    input_file_type: InputFileType = InputFileType.Auto
    output: Path | None = None
    emit_model_metadata: Path | None = None
    output_model_type: DataModelType = DataModelType.PydanticV2BaseModel
    preset: PresetNameValue | None = None
    read_implied_options_from_merged_values: bool = False
    target_python_version: PythonVersion = PythonVersionMin
    target_pydantic_version: TargetPydanticVersion | None = None
    base_class: str = ''
    base_class_map: dict[str, str | list[str]] | None = None
    model_name_map: dict[str, str] | None = None
    additional_imports: list[str] | None = None
    class_decorators: list[str] | None = None
    custom_template_dir: Path | None = None
    schema_validator_type: SchemaValidatorType | None = None
    generate_schema_validators: bool = False
    check_pattern_maps_strictly: bool = False
    schema_validator_base_class_name: str | None = None
    validation: bool = False
    field_constraints: bool = False
    alias_generator: AliasGenerator | None = None
    pin_aliases_with_alias_generator: bool = False
    snake_case_field: bool = False
    strip_default_none: bool = False
    disable_timestamp: bool = False
    enable_version_header: bool = False
    enable_command_header: bool = False
    enable_generated_header_marker: bool = False
    allow_population_by_field_name: bool = False
    allow_extra_fields: bool = False
    extra_fields: str | None = None
    use_generic_base_class: bool = False
    keep_bases_beside_generic_base_class: bool = False
    class_name: str | None = None
    allow_leading_underscore_class_name: bool = False
    class_name_prefix: str | None = None
    class_name_suffix: str | None = None
    class_name_affix_scope: ClassNameAffixScope = ClassNameAffixScope.All
    use_standard_collections: bool = True
    use_schema_description: bool = False
    use_field_description: bool = False
    use_field_description_example: bool = False
    use_attribute_docstrings: bool = False
    use_inline_field_description: bool = False
    use_single_line_docstring: bool = False
    use_default_kwarg: bool = False
    apply_field_options_to_every_field: bool = False
    deserialize_default_values: Sequence[DefaultValueType] = ()
    use_missing_sentinel: bool = False
    reuse_model: bool = False
    reuse_scope: ReuseScope = ReuseScope.Module
    shared_module_name: str = DEFAULT_SHARED_MODULE_NAME
    encoding: str = DEFAULT_ENCODING
    enum_field_as_literal: LiteralType | None = None
    enum_field_as_literal_map: dict[str, str] | None = None
    open_enums: OpenEnums | None = None
    open_enum_base_class_map: dict[str, str] | None = None
    ignore_enum_constraints: bool = False
    use_one_literal_as_default: bool = False
    use_enum_values_in_discriminator: bool = False
    merge_shared_variant_tags: bool = False
    use_unmapped_variant_tag_values: bool = False
    read_mapping_keys_by_schema_tag_type: bool = False
    use_root_types_for_mixed_union_map_keys: bool = False
    rename_redeclared_fields_hiding_types: bool = False
    rename_fields_hiding_types_from_type_checkers: bool = False
    read_schema_version_per_document: bool = False
    read_escaped_ref_pointers: bool = False
    read_dynamic_anchors_in_document_order: bool = False
    read_ids_with_empty_fragment: bool = False
    read_refs_in_their_resources: bool = False
    read_single_allof_refs_in_their_documents: bool = False
    read_ref_siblings_in_closed_allof_members: bool = False
    ignore_ref_siblings_by_schema_version: bool = False
    read_yaml_1_1_numbers_as_text: bool = False
    use_msgspec_tagged_unions: bool = False
    tag_msgspec_by_payload_name: bool = False
    use_msgspec_nullable_enum_alias: bool = False
    use_msgspec_forbid_unknown_fields: bool = False
    use_typed_nullable_map_values: bool = False
    use_typed_map_values_beside_other_types: bool = False
    use_single_dict_for_object_maps: bool = False
    read_unevaluated_properties: bool = False
    read_kubernetes_extensions: bool = False
    use_single_value_enum_as_const: bool = False
    read_const_beside_enum: bool = False
    read_format_as_annotation: bool = False
    read_uuid6_uuid7_uuid8_formats: bool = False
    filter_literal_values: bool = False
    intersect_allof_keywords: bool = False
    intersect_combined_schema_keywords: bool = False
    distribute_allof_over_unions: bool = False
    intersect_merged_allof_members: bool = False
    read_allof_parents_as_their_models: bool = False
    read_allof_parents_in_mro_order: bool = False
    read_inherited_property_schemas_in_mro_order: bool = False
    read_nullable_beside_type_list: bool = False
    keep_null_of_nullable_items: bool = False
    keep_field_defaults_off_branch_roots: bool = False
    keep_enum_member_values: bool = False
    set_default_enum_member: bool = False
    use_subclass_enum: bool = False
    use_specialized_enum: bool = True
    strict_nullable: bool = False
    omit_redundant_reference_null: bool = False
    keep_reference_null_on_merged_models: bool = False
    use_generic_container_types: bool = False
    enable_faux_immutability: bool = False
    disable_appending_item_suffix: bool = False
    singularize_last_word_of_item_names: bool = False
    empty_enum_field_name: str | None = None
    field_extra_keys: set[str] | None = None
    field_include_all_keys: bool = False
    field_extra_keys_without_x_prefix: set[str] | None = None
    model_extra_keys: set[str] | None = None
    model_extra_keys_without_x_prefix: set[str] | None = None
    include_path_parameters: bool = False
    openapi_include_paths: list[str] | None = None
    openapi_include_info_version: bool = False
    openapi_as_definitions: Sequence[OpenAPIAsDefinitions] = ()
    graphql_no_typename: bool = False
    wrap_string_literal: bool | None = None
    use_title_as_name: bool = False
    infer_union_variant_names: bool = False
    use_tag_as_union_variant_name: bool = False
    infer_union_discriminators: bool = False
    name_allof_union_members_after_branches: bool = False
    use_operation_id_as_name: bool = False
    use_unique_items_as_set: bool = False
    use_unique_items_as_set_by_value: bool = False
    read_set_item_fields_in_class_order: bool = False
    use_tuple_for_fixed_items: bool = False
    use_tuple_for_closed_arrays: bool = False
    use_tuple_for_fixed_length_arrays: bool = False
    use_total_false_for_typed_dict: bool = False
    use_closed_typed_dict: bool = True
    allof_merge_mode: AllOfMergeMode = AllOfMergeMode.Constraints
    allof_class_hierarchy: AllOfClassHierarchy = AllOfClassHierarchy.IfNoConflict
    allow_remote_refs: bool | None = None
    strict_refs: bool = False
    untrusted_input: bool = False
    allow_private_network: bool = False
    http_backend: HTTPBackend = HTTPBackend.AUTO
    http_headers: Sequence[tuple[str, str]] | None = None
    http_local_ref_path: Path | None = None
    http_ignore_tls: bool = False
    http_timeout: float | None = None
    lockfile: Path | None = None
    update_lock: bool = False
    locked: bool = False
    @property
    def remote_lock(self) -> Any | None
    @property
    def remote_lock_resolved(self) -> bool
    def resolve_remote_lock(self, remote_lock: Any | None) -> None
    use_annotated: bool = False
    use_serialize_as_any: bool = False
    use_serialize_as_any_for_every_subclass: bool = False
    use_non_positive_negative_number_constrained_types: bool = False
    use_decimal_for_multiple_of: bool = False
    use_decimal_in_field_forms: bool = False
    use_encoded_str_for_constrained_base64: bool = False
    use_strict_str_for_base64: bool = False
    use_msgspec_meta_for_map_keys: bool = False
    merge_msgspec_str_like_union_members: bool = False
    omit_redundant_constraints: bool = False
    read_length_keywords_by_type: bool = False
    read_object_keywords_by_type: bool = False
    read_msgspec_union_bounds_exactly: bool = False
    keep_string_keywords_beside_formats: bool = False
    read_input_model_dataclass_fields_by_alias: bool = False
    reuse_every_reached_input_model_type: bool = False
    use_site_models_for_constrained_refs: bool = False
    use_one_model_per_ref_site: bool = False
    original_field_name_delimiter: str | None = None
    use_double_quotes: bool = False
    use_union_operator: bool = True
    collapse_root_models: bool = False
    collapse_root_models_name_strategy: CollapseRootModelsNameStrategy | None = None
    collapse_shared_parent_wrappers: bool = False
    keep_constrained_root_models_in_every_container: bool = False
    keep_enum_literal_aliases: bool = False
    keep_reference_null_on_collapsed_root_models: bool = False
    keep_shared_members_on_collapsed_root_models: bool = False
    collapse_constrained_root_models_as_annotated: bool = False
    remove_unused_models_beside_type_overrides: bool = False
    keep_self_referencing_array_items: bool = False
    keep_defaults_of_inherited_required_fields: bool = False
    omit_incomplete_model_defaults: bool = False
    collapse_reuse_models: bool = False
    skip_root_model: bool = False
    use_root_model_sequence_interface: bool = False
    use_type_alias: bool = False
    use_type_alias_type: bool = False
    use_root_model_type_alias: bool = False
    use_validate_default_for_root_model_type_aliases: bool = False
    use_plain_alias_for_recursive_models: bool = False
    special_field_name_prefix: str | None = None
    remove_special_field_name_prefix: bool = False
    capitalise_enum_members: bool = False
    capitalise_numbered_enum_members: bool = False
    keep_model_order: bool = False
    order_constructor_fields_by: Sequence[ConstructorFieldOrder] = ()
    custom_file_header: str | None = None
    custom_file_header_path: Path | None = None
    custom_file_header_mode: CustomFileHeaderMode = CustomFileHeaderMode.Replace
    custom_formatters: list[str] | None = None
    use_pendulum: bool = False
    use_standard_primitive_types: bool = False
    use_str_for_formats_msgspec_cannot_decode: bool = False
    use_object_type: bool = False
    untyped_value_type: str | None = None
    http_query_parameters: Sequence[tuple[str, str]] | None = None
    treat_dot_as_module: bool | None = None
    strict_dotted_module_names: bool = False
    rename_submodules_hidden_by_classes: bool = False
    use_exact_imports: bool = False
    use_type_checking_imports: bool | None = None
    union_mode: UnionMode | None = None
    output_datetime_class: DatetimeClassType | None = None
    output_date_class: DateClassType | None = None
    keyword_only: bool = False
    frozen_dataclasses: bool = False
    no_alias: bool = False
    use_serialization_alias: bool = False
    use_frozen_field: bool = False
    use_default_factory_for_optional_nested_models: bool = False
    formatters: list[Formatter] | None = None
    builtin_format_line_length: int | None = None
    parent_scoped_naming: bool = False
    naming_strategy: NamingStrategy | None = None
    duplicate_name_suffix: dict[str, str] | None = None
    use_duplicate_name_suffix_for_every_collision: bool = False
    dataclass_arguments: DataclassArguments | None = None
    keep_false_dataclass_arguments: bool = False
    disable_future_imports: bool = False
    import_overrides: dict[str, str] | None = None
    type_mappings: list[str] | None = None
    type_overrides: dict[str, str] | None = None
    type_overrides_replace_whole_type: bool = False
    use_x_python_type_as_written: bool = False
    use_x_python_import_for_every_ref: bool = False
    use_bytes_for_content_media_type: bool = False
    use_bounds_for_float_const: bool = False
    read_only_write_only_model_type: ReadOnlyWriteOnlyModelType | None = None
    dedupe_request_response_variants: bool = False
    dedupe_numbered_request_response_variants: bool = False
    use_status_code_in_response_name: bool = False
    keep_first_character_of_path_keys: bool = False
    keep_content_parameter_refs: bool = False
    skip_path_extension_keys: bool = False
    use_enum_field_as_literal_in_operations: bool = False
    name_converted_payloads_by_message: bool = False
    merge_message_trait_headers: bool = False
    all_exports_scope: AllExportsScope | None = None
    all_exports_collision_strategy: AllExportsCollisionStrategy | None = None
    field_type_collision_strategy: FieldTypeCollisionStrategy | None = None
    module_split_mode: ModuleSplitMode | None = None
    schema_version: str | None = None
    schema_version_mode: VersionMode | None = None
    external_ref_mapping: dict[str, str] | None = None
    generate_server: ServerType | None = None
    server_output: Path | None = None
    server_package: str | None = None
    server_model_package: str | None = None
    server_layout: ServerLayout | None = None
    server_handler_mode: ServerHandlerMode | None = None
    server_handler_modes: Mapping[str, ServerHandlerMode] | None = None
    server_include_request: bool | None = None
    server_body_mode: ServerBodyMode | None = None
    server_body_modes: Mapping[str, ServerBodyMode] | None = None
    server_primary_responses: Mapping[str, Any] | None = None
    server_operation_names: Mapping[str, str] | None = None
    server_router_names: Mapping[str, str] | None = None
    server_parameter_names: Mapping[str, Mapping[str, str]] | None = None
    generate_client: ClientType | None = None
    client_output: Path | None = None
    client_package: str | None = None
    client_model_package: str | None = None
    client_signature_style: ClientSignatureStyle | None = None
    client_body_arguments: ClientBodyArguments | None = None
    client_resource_names: Mapping[str, str] | None = None
    client_operations: Mapping[str, Mapping[str, Any]] | None = None
    client_default_base_url: str | None = None
    client_server_base_url: str | None = None
    client_deep_object_brackets: bool | None = None
    client_asyncapi_perspective: ClientAsyncAPIPerspective | None = None
    client_protocols: Mapping[str, Any] | None = None
    @field_validator('additional_imports')
    @classmethod
    def validate_additional_imports(cls, value: list[str] | None) -> list[str] | None
    @model_validator(mode='after')
    def normalize_schema_validator_type(self) -> Self
    @model_validator(mode='after')
    def validate_remote_lock_mode(self) -> Self
    @model_validator(mode='after')
    def validate_target_selection(self) -> Self
    @model_validator(mode='after')
    def normalize_use_type_alias_type(self) -> Self
OPEN_ENUM_BASE_CLASS_KEYS: Final = ('Enum', 'StrEnum', 'IntEnum')
PresetNameValue = builtins.str
def implied_model_settings(config: Any, explicit: AbstractSet[str]) -> dict[str, bool]
def implied_target_settings(config: Any, explicit: AbstractSet[str]) -> dict[str, Any]
def validate_named_paths(value: Any, info: ValidationInfo) -> Any
def validate_untyped_value_type(value: str | None) -> str | None

[datamodel_code_generator.cli_options]
@dataclass(frozen=True)
class CLIOptionMeta
    name: str
    category: OptionCategory
    topic: OptionTopic | None = None
    group: OptionGroup | None = None
    since_version: str | None = None
    deprecated: bool = False
    deprecated_message: str | None = None
    implies: tuple[CLIOptionRelation, ...] = ()
    requires: tuple[CLIOptionRelation, ...] = ()
    conflicts: tuple[CLIOptionRelation, ...] = ()
CLI_OPTION_META: dict[str, CLIOptionMeta] = _with_relation_rows(_documented_options(OPTIONS))
    uses OPTIONS: Final[tuple[Option, ...]] = <tuple of 318>
    uses JSON_SCHEMA_NAMES: Final = tuple(_JSON_SCHEMAS)
    uses DEFAULT_WATCH_DELAY: Final = 0.5
    uses _JSON_SCHEMAS: Final[Mapping[str, _JsonSchemaSource]] = MappingProxyType({'config': _JsonSchemaSource('json_config', 'json_config_json_schema', 'argv'), 'generate-prompt': _JsonSchemaSource('prompt', 'generate_prompt_json_schema', 'parsed'), 'generation': _JsonSchemaSource('_structured_output', 'generation_output_json_schema', 'argv'), 'model-metadata': _JsonSchemaSource('model_metadata', 'model_metadata_json_schema', 'argv'), 'recommend-options': _JsonSchemaSource('_structured_output', 'recommend_options_json_schema', 'main'), 'structured-output': _JsonSchemaSource('_structured_output', 'structured_output_json_schema', 'argv')})
CLI_REFERENCE_ROOT = 'cli-reference'
EXCLUDED_FROM_DOCS = datamodel_code_generator.cli_options.MANUAL_DOCS
MANUAL_DOCS: frozenset[str] = frozenset({'--help', '--version', '--debug', '--profile', '--job', '--all-jobs', '--output-format', '--output-format-json-schema', '--no-color', '--generate-prompt', '--install-skill', '--skill-scope', '--overwrite-skill', '--list-deprecations', '--list-experimental'})
OPTION_RELATION_KINDS = ('implies', 'requires', 'conflicts')
OPTION_TOPIC_ALLOWED_GROUPS: dict[OptionTopic, frozenset[OptionGroup]] = {OptionTopic.MODEL_CUSTOMIZATION: frozenset({OptionGroup.MODEL_NAMING, OptionGroup.MODEL_REUSE, OptionGroup.MODEL_SHAPE, OptionGroup.ROOT_MODEL}), OptionTopic.TEMPLATE_CUSTOMIZATION: frozenset({OptionGroup.CUSTOM_TEMPLATES, OptionGroup.GENERATED_OUTPUT, OptionGroup.IMPORTS, OptionGroup.OUTPUT_FORMATTING}), OptionTopic.TYPING_CUSTOMIZATION: frozenset({OptionGroup.COLLECTION_TYPES, OptionGroup.IMPORTS, OptionGroup.TYPE_ALIAS, OptionGroup.TYPE_MAPPING, OptionGroup.TYPE_SYNTAX}), OptionTopic.OPENAPI: frozenset({OptionGroup.OPENAPI_NAMING, OptionGroup.OPENAPI_PATHS, OptionGroup.OPENAPI_SCOPES, OptionGroup.READ_ONLY_WRITE_ONLY})}
PythonVersion = datamodel_code_generator.format.PythonVersion
UTILITY_OPTIONS_DOC = 'utility-options'
@lru_cache(maxsize=1)
def get_all_argparse_options() -> frozenset[str]
@lru_cache(maxsize=1)
def get_all_canonical_options() -> frozenset[str]
def get_canonical_option(option: str) -> str
def get_cli_doc_slug(text: str) -> str
def get_cli_option_doc_name(option: str) -> str
def get_cli_option_doc_path(option: str, *, root: str='', extension: str='.md') -> str | None
def get_option_meta(option: str) -> CLIOptionMeta | None
def is_excluded_from_docs(option: str) -> bool
def is_manual_doc(option: str) -> bool

[datamodel_code_generator.config]
__all__ = computed by __getattr__
def __getattr__(name: str) -> type[ParserConfig] | list[str]
    | if name == '__all__':
    |     return [member for member in __dir__() if not member.startswith('_')]
    | if name not in _FORMAT_PARSER_CONFIGS:
    |     msg = f"module {__name__!r} has no attribute {name!r}"
    |     raise AttributeError(msg)
    | with _CONFIG_REBUILD_LOCK:
    |     return globals().get(name) or _define_format_parser_configs(name)
    uses _FORMAT_PARSER_CONFIGS = frozenset({'AsyncAPIParserConfig', 'AvroParserConfig', 'GraphQLParserConfig', 'OpenAPIParserConfig', 'ProtobufParserConfig', 'XMLSchemaParserConfig'})
    uses _CONFIG_REBUILD_LOCK = RLock()
def __dir__() -> list[str]
    | hooks = {'__dir__', '__getattr__', '_FORMAT_PARSER_CONFIGS', '_define_format_parser_configs'}
    | return sorted(globals().keys() - hooks | _FORMAT_PARSER_CONFIGS)
    uses _FORMAT_PARSER_CONFIGS = frozenset({'AsyncAPIParserConfig', 'AvroParserConfig', 'GraphQLParserConfig', 'OpenAPIParserConfig', 'ProtobufParserConfig', 'XMLSchemaParserConfig'})
class AsyncAPIParserConfig(JSONSchemaParserConfig)  [built by _define_format_parser_configs()]
    openapi_scopes: list[OpenAPIScope] | None = None
    include_path_parameters: bool = False
    use_status_code_in_response_name: bool = False
    keep_first_character_of_path_keys: bool = False
    keep_content_parameter_refs: bool = False
    skip_path_extension_keys: bool = False
    use_enum_field_as_literal_in_operations: bool = False
    openapi_include_paths: list[str] | None = None
    openapi_include_info_version: bool = False
    openapi_as_definitions: Sequence[OpenAPIAsDefinitions] = ()
    openapi_version: OpenAPIVersion | None = None
    asyncapi_version: AsyncAPIVersion | None = None
    name_converted_payloads_by_message: bool = False
    merge_message_trait_headers: bool = False
class AvroParserConfig(JSONSchemaParserConfig)  [built by _define_format_parser_configs()]
CallableSchema = Callable[[str], str]
DefaultPutDictSchema = DefaultPutDict[str, str]
DumpResolveReferenceAction = Callable[[Iterable[str]], str]
ExtraTemplateDataType = defaultdict[str, Annotated[dict[str, Any], Field(default_factory=dict)]]
class GenerateConfig(BaseGenerateConfig)
    input_filename: str | None = None
    extra_template_data: ExtraTemplateDataType | None = None
    validators: Mapping[str, ModelValidators] | None = None
    aliases: Mapping[str, str | list[str]] | None = None
    serialization_aliases: Mapping[str, str] | None = None
    command_line: str | None = None
    apply_default_values_for_required_fields: bool = False
    force_optional_for_required_fields: bool = False
    strict_types: Sequence[StrictTypes] | None = None
    custom_class_name_generator: CallableSchema | None = None
    openapi_scopes: list[OpenAPIScope] | None = None
    graphql_scopes: list[GraphQLScope] | None = None
    custom_formatters_kwargs: dict[str, Any] | None = None
    settings_path: Path | None = None
    default_value_overrides: Mapping[str, Any] | None = None
    @field_validator(*OUTPUT_PATH_FIELDS)
    @classmethod
    def expand_output_paths(cls, value: Path | None, info: ValidationInfo) -> Path | None
class GraphQLParserConfig(ParserConfig)  [built by _define_format_parser_configs()]
    data_model_scalar_type: type[DataModel] = DataTypeScalar
    data_model_union_type: type[DataModel] = DataTypeUnion
    graphql_no_typename: bool = False
class JSONSchemaParserConfig(ParserConfig)
    jsonschema_version: JsonSchemaVersion | None = None
    schema_version_mode: VersionMode | None = None
class OpenAPIParserConfig(JSONSchemaParserConfig)  [built by _define_format_parser_configs()]
    openapi_scopes: list[OpenAPIScope] | None = None
    include_path_parameters: bool = False
    use_status_code_in_response_name: bool = False
    keep_first_character_of_path_keys: bool = False
    keep_content_parameter_refs: bool = False
    skip_path_extension_keys: bool = False
    use_enum_field_as_literal_in_operations: bool = False
    openapi_include_paths: list[str] | None = None
    openapi_include_info_version: bool = False
    openapi_as_definitions: Sequence[OpenAPIAsDefinitions] = ()
    openapi_version: OpenAPIVersion | None = None
class ParseConfig(BaseModel)
    model_config = ConfigDict(extra='forbid', arbitrary_types_allowed=True, defer_build=True)
    with_import: bool | None = True
    format_: bool | None = True
    settings_path: Path | None = None
    disable_future_imports: bool = False
    all_exports_scope: AllExportsScope | None = None
    all_exports_collision_strategy: AllExportsCollisionStrategy | None = None
    module_split_mode: ModuleSplitMode | None = None
    collect_model_metadata: bool = False
class ParserConfig(BaseModel)
    model_config = ConfigDict(extra='forbid', arbitrary_types_allowed=True, protected_namespaces=(), defer_build=True)
    @property
    def repair_invalid_dotted_stdout(self) -> bool
    @property
    def forced_invalid_dotted_stdout_repair_modules(self) -> tuple[tuple[str, ...], ...]
    data_model_type: type[DataModel] = pydantic_v2.BaseModel
    data_model_root_type: type[DataModel] = pydantic_v2.RootModel
    data_type_manager_type: type[DataTypeManager] = pydantic_v2.DataTypeManager
    data_model_field_type: type[DataModelFieldBase] = pydantic_v2.DataModelField
    base_class: str | None = None
    base_class_map: dict[str, str | list[str]] | None = None
    model_name_map: dict[str, str] | None = None
    additional_imports: list[str] | None = None
    class_decorators: list[str] | None = None
    custom_template_dir: Path | None = None
    extra_template_data: ExtraTemplateDataType | None = None
    validators: Mapping[str, ModelValidators] | None = None
    generate_schema_validators: bool = False
    check_pattern_maps_strictly: bool = False
    schema_validator_base_class_name: str | None = None
    target_python_version: PythonVersion = PythonVersionMin
    dump_resolve_reference_action: DumpResolveReferenceAction | None = None
    validation: bool = False
    field_constraints: bool = False
    alias_generator: AliasGenerator | None = None
    pin_aliases_with_alias_generator: bool = False
    snake_case_field: bool = False
    strip_default_none: bool = False
    aliases: Mapping[str, str | list[str]] | None = None
    serialization_aliases: Mapping[str, str] | None = None
    allow_population_by_field_name: bool = False
    apply_default_values_for_required_fields: bool = False
    allow_extra_fields: bool = False
    extra_fields: str | None = None
    use_generic_base_class: bool = False
    keep_bases_beside_generic_base_class: bool = False
    force_optional_for_required_fields: bool = False
    class_name: str | None = None
    allow_leading_underscore_class_name: bool = False
    class_name_prefix: str | None = None
    class_name_suffix: str | None = None
    class_name_affix_scope: ClassNameAffixScope = ClassNameAffixScope.All
    use_standard_collections: bool = False
    base_path: Path | None = None
    use_schema_description: bool = False
    use_field_description: bool = False
    use_field_description_example: bool = False
    use_attribute_docstrings: bool = False
    use_inline_field_description: bool = False
    use_single_line_docstring: bool = False
    use_default_kwarg: bool = False
    apply_field_options_to_every_field: bool = False
    deserialize_default_values: Sequence[DefaultValueType] = ()
    use_missing_sentinel: bool = False
    reuse_model: bool = False
    reuse_scope: ReuseScope | None = None
    shared_module_name: str = DEFAULT_SHARED_MODULE_NAME
    encoding: str = DEFAULT_ENCODING
    enum_field_as_literal: LiteralType | None = None
    enum_field_as_literal_map: dict[str, str] | None = None
    open_enums: OpenEnums | None = None
    open_enum_base_class_map: dict[str, str] | None = None
    ignore_enum_constraints: bool = False
    set_default_enum_member: bool = False
    use_subclass_enum: bool = False
    use_specialized_enum: bool = True
    strict_nullable: bool = False
    omit_redundant_reference_null: bool = False
    keep_reference_null_on_merged_models: bool = False
    use_generic_container_types: bool = False
    enable_faux_immutability: bool = False
    remote_text_cache: DefaultPutDictSchema | None = None
    disable_appending_item_suffix: bool = False
    singularize_last_word_of_item_names: bool = False
    strict_types: Sequence[StrictTypes] | None = None
    empty_enum_field_name: str | None = None
    custom_class_name_generator: CallableSchema | None = None
    field_extra_keys: set[str] | None = None
    field_include_all_keys: bool = False
    field_extra_keys_without_x_prefix: set[str] | None = None
    model_extra_keys: set[str] | None = None
    model_extra_keys_without_x_prefix: set[str] | None = None
    wrap_string_literal: bool | None = None
    use_title_as_name: bool = False
    infer_union_variant_names: bool = False
    use_tag_as_union_variant_name: bool = False
    infer_union_discriminators: bool = False
    name_allof_union_members_after_branches: bool = False
    use_operation_id_as_name: bool = False
    use_unique_items_as_set: bool = False
    use_unique_items_as_set_by_value: bool = False
    read_set_item_fields_in_class_order: bool = False
    use_tuple_for_fixed_items: bool = False
    use_tuple_for_closed_arrays: bool = False
    use_tuple_for_fixed_length_arrays: bool = False
    use_total_false_for_typed_dict: bool = False
    use_closed_typed_dict: bool = True
    allof_merge_mode: AllOfMergeMode = AllOfMergeMode.Constraints
    allof_class_hierarchy: AllOfClassHierarchy = AllOfClassHierarchy.IfNoConflict
    allow_remote_refs: bool | None = None
    strict_refs: bool = False
    untrusted_input: bool = False
    allow_private_network: bool = False
    http_backend: HTTPBackend = HTTPBackend.AUTO
    http_headers: Sequence[tuple[str, str]] | None = None
    http_local_ref_path: Path | None = None
    http_ignore_tls: bool = False
    http_timeout: float | None = None
    use_annotated: bool = False
    use_serialize_as_any: bool = False
    use_serialize_as_any_for_every_subclass: bool = False
    use_non_positive_negative_number_constrained_types: bool = False
    use_decimal_for_multiple_of: bool = False
    use_decimal_in_field_forms: bool = False
    use_encoded_str_for_constrained_base64: bool = False
    use_strict_str_for_base64: bool = False
    use_msgspec_meta_for_map_keys: bool = False
    merge_msgspec_str_like_union_members: bool = False
    omit_redundant_constraints: bool = False
    read_length_keywords_by_type: bool = False
    read_object_keywords_by_type: bool = False
    read_msgspec_union_bounds_exactly: bool = False
    keep_string_keywords_beside_formats: bool = False
    use_site_models_for_constrained_refs: bool = False
    use_one_model_per_ref_site: bool = False
    original_field_name_delimiter: str | None = None
    use_double_quotes: bool = False
    use_union_operator: bool = False
    allow_responses_without_content: bool = False
    collapse_root_models: bool = False
    collapse_root_models_name_strategy: CollapseRootModelsNameStrategy | None = None
    collapse_shared_parent_wrappers: bool = False
    keep_constrained_root_models_in_every_container: bool = False
    keep_enum_literal_aliases: bool = False
    keep_reference_null_on_collapsed_root_models: bool = False
    keep_shared_members_on_collapsed_root_models: bool = False
    collapse_constrained_root_models_as_annotated: bool = False
    remove_unused_models_beside_type_overrides: bool = False
    keep_self_referencing_array_items: bool = False
    keep_defaults_of_inherited_required_fields: bool = False
    omit_incomplete_model_defaults: bool = False
    collapse_reuse_models: bool = False
    skip_root_model: bool = False
    use_root_model_sequence_interface: bool = False
    use_type_alias: bool = False
    use_validate_default_for_root_model_type_aliases: bool = False
    use_plain_alias_for_recursive_models: bool = False
    special_field_name_prefix: str | None = None
    remove_special_field_name_prefix: bool = False
    capitalise_enum_members: bool = False
    capitalise_numbered_enum_members: bool = False
    keep_model_order: bool = False
    order_constructor_fields_by: Sequence[ConstructorFieldOrder] = ()
    use_one_literal_as_default: bool = False
    use_enum_values_in_discriminator: bool = False
    merge_shared_variant_tags: bool = False
    use_unmapped_variant_tag_values: bool = False
    read_mapping_keys_by_schema_tag_type: bool = False
    use_root_types_for_mixed_union_map_keys: bool = False
    rename_redeclared_fields_hiding_types: bool = False
    rename_fields_hiding_types_from_type_checkers: bool = False
    read_schema_version_per_document: bool = False
    read_escaped_ref_pointers: bool = False
    read_dynamic_anchors_in_document_order: bool = False
    read_ids_with_empty_fragment: bool = False
    read_refs_in_their_resources: bool = False
    read_single_allof_refs_in_their_documents: bool = False
    read_ref_siblings_in_closed_allof_members: bool = False
    ignore_ref_siblings_by_schema_version: bool = False
    read_yaml_1_1_numbers_as_text: bool = False
    use_msgspec_tagged_unions: bool = False
    tag_msgspec_by_payload_name: bool = False
    use_msgspec_nullable_enum_alias: bool = False
    use_msgspec_forbid_unknown_fields: bool = False
    use_typed_nullable_map_values: bool = False
    use_typed_map_values_beside_other_types: bool = False
    use_single_dict_for_object_maps: bool = False
    read_unevaluated_properties: bool = False
    read_kubernetes_extensions: bool = False
    use_single_value_enum_as_const: bool = False
    read_const_beside_enum: bool = False
    read_format_as_annotation: bool = False
    read_uuid6_uuid7_uuid8_formats: bool = False
    filter_literal_values: bool = False
    intersect_allof_keywords: bool = False
    intersect_combined_schema_keywords: bool = False
    distribute_allof_over_unions: bool = False
    intersect_merged_allof_members: bool = False
    read_allof_parents_as_their_models: bool = False
    read_allof_parents_in_mro_order: bool = False
    read_inherited_property_schemas_in_mro_order: bool = False
    read_nullable_beside_type_list: bool = False
    keep_null_of_nullable_items: bool = False
    keep_field_defaults_off_branch_roots: bool = False
    keep_enum_member_values: bool = False
    known_third_party: list[str] | None = None
    custom_formatters: list[str] | None = None
    custom_formatters_kwargs: dict[str, Any] | None = None
    use_pendulum: bool = False
    use_standard_primitive_types: bool = False
    use_str_for_formats_msgspec_cannot_decode: bool = False
    use_object_type: bool = False
    untyped_value_type: str | None = None
    http_query_parameters: Sequence[tuple[str, str]] | None = None
    treat_dot_as_module: bool | None = None
    strict_dotted_module_names: bool = False
    rename_submodules_hidden_by_classes: bool = False
    use_exact_imports: bool = False
    use_type_checking_imports: bool | None = None
    default_field_extras: dict[str, Any] | None = None
    target_datetime_class: DatetimeClassType | None = None
    target_date_class: DateClassType | None = None
    keyword_only: bool = False
    frozen_dataclasses: bool = False
    no_alias: bool = False
    use_serialization_alias: bool = False
    use_frozen_field: bool = False
    use_default_factory_for_optional_nested_models: bool = False
    formatters: list[Formatter] | None = None
    builtin_format_line_length: int | None = None
    defer_formatting: bool = False
    parent_scoped_naming: bool = False
    naming_strategy: NamingStrategy | None = None
    duplicate_name_suffix: dict[str, str] | None = None
    use_duplicate_name_suffix_for_every_collision: bool = False
    dataclass_arguments: DataclassArguments | None = None
    keep_false_dataclass_arguments: bool = False
    import_overrides: dict[str, str] | None = None
    type_mappings: list[str] | None = None
    type_overrides: dict[str, str] | None = None
    type_overrides_replace_whole_type: bool = False
    use_x_python_type_as_written: bool = False
    use_x_python_import_for_every_ref: bool = False
    use_bytes_for_content_media_type: bool = False
    use_bounds_for_float_const: bool = False
    read_only_write_only_model_type: ReadOnlyWriteOnlyModelType | None = None
    dedupe_request_response_variants: bool = False
    dedupe_numbered_request_response_variants: bool = False
    field_type_collision_strategy: FieldTypeCollisionStrategy | None = None
    target_pydantic_version: TargetPydanticVersion | None = None
    default_value_overrides: Mapping[str, Any] | None = None
    external_ref_mapping: dict[str, str] | None = None
    @field_validator('additional_imports')
    @classmethod
    def validate_additional_imports(cls, value: list[str] | None) -> list[str] | None
class ProtobufParserConfig(JSONSchemaParserConfig)  [built by _define_format_parser_configs()]
    protobuf_version: ProtobufVersion | None = None
class XMLSchemaParserConfig(JSONSchemaParserConfig)  [built by _define_format_parser_configs()]
    xmlschema_version: XMLSchemaVersion | None = None
def validate_schema_validator_base_class_name(value: str | None) -> str | None

[datamodel_code_generator.deprecations]
DEPRECATIONS: dict[DeprecationId, Deprecation] = <dict of 20>
@dataclass(frozen=True)
class Deprecation
    id: DeprecationId
    kind: DeprecationKind
    target: str
    message: str
    warning_since: str
    removal_version: str | None
    replacement: str | None = None
    status: DeprecationStatus = 'active'
    warning_category: str = 'DeprecationWarning'
    note: str | None = None
DeprecationFormat = Literal['table', 'json', 'markdown']
DeprecationId = Literal[<tuple of 20>]
DeprecationKind = Literal['cli-option', 'python-api', 'config', 'behavior', 'schema', 'dependency']
DeprecationStatus = Literal['active', 'scheduled']
def cli_deprecations() -> dict[str, str]
@contextmanager
def cli_migration_warning_scope() -> Generator[None]
def deprecation_as_dict(deprecation: Deprecation) -> dict[str, str | None]
def deprecation_message(deprecation_id: DeprecationId) -> str
def get_deprecation(deprecation_id: DeprecationId) -> Deprecation
def iter_deprecations() -> tuple[Deprecation, ...]
def render_deprecations(format_: DeprecationFormat) -> str
def render_deprecations_json() -> str
def render_deprecations_markdown(*, include_header: bool=True) -> str
def render_deprecations_table() -> str
def render_release_note_deprecations(version: str) -> str
def warn_deprecated(deprecation_id: DeprecationId, *, stacklevel: int | None=None, details: str | None=None) -> None
def warn_legacy_dependency(deprecation_id: DeprecationId, version: str, minimum: tuple[int, int, int]) -> None
def warn_undeclared_extra(deprecation_id: DeprecationId, extra: str) -> None

[datamodel_code_generator.dynamic]
@dataclass(frozen=True, eq=False, slots=True, kw_only=True)
class DynamicModule
    models: dict[str, type]
    root_class: type | None
    models_by_source_ref: Mapping[str, type]
    module_name: str | None
def clear_dynamic_models_cache() -> int
def generate_dynamic_models(input_: Mapping[str, Any], *, config: GenerateConfig | None=None, cache_size: int=128, module_name: str | None=None, target_model_names: Sequence[str] | None=None) -> dict[str, type]
def generate_dynamic_module(input_: Mapping[str, Any], *, config: GenerateConfig | None=None, cache_size: int=128, module_name: str | None=None, register_module: bool=False) -> DynamicModule

[datamodel_code_generator.enums]
__all__ = [
    'DEFAULT_SHARED_MODULE_NAME',
    'MAX_VERSION',
    'MIN_VERSION',
    'AliasGenerator',
    'AllExportsCollisionStrategy',
    'AllExportsScope',
    'AllOfClassHierarchy',
    'AllOfMergeMode',
    'AsyncAPIVersion',
    'ClassNameAffixScope',
    'ClientAsyncAPIPerspective',
    'ClientBodyArguments',
    'ClientSignatureStyle',
    'ClientType',
    'CollapseRootModelsNameStrategy',
    'ConstructorFieldOrder',
    'CustomFileHeaderMode',
    'DataModelType',
    'DataclassArguments',
    'DefaultValueType',
    'FieldTypeCollisionStrategy',
    'GraphQLScope',
    'HTTPBackend',
    'InputFileType',
    'InputModelRefStrategy',
    'JsonSchemaVersion',
    'ModuleSplitMode',
    'NamingStrategy',
    'OpenAPIAsDefinitions',
    'OpenAPIScope',
    'OpenAPIVersion',
    'OpenEnums',
    'ProtobufVersion',
    'ReadOnlyWriteOnlyModelType',
    'ReuseScope',
    'SchemaValidatorType',
    'ServerBodyMode',
    'ServerHandlerMode',
    'ServerLayout',
    'ServerType',
    'StrictTypes',
    'TargetPydanticVersion',
    'UnionMode',
    'VersionMode',
    'XMLSchemaVersion',
]
class AliasGenerator(Enum)
    ToCamel = 'to_camel'
    ToPascal = 'to_pascal'
    ToSnake = 'to_snake'
class AllExportsCollisionStrategy(Enum)
    Error = 'error'
    MinimalPrefix = 'minimal-prefix'
    FullPrefix = 'full-prefix'
class AllExportsScope(Enum)
    Children = 'children'
    Recursive = 'recursive'
class AllOfClassHierarchy(Enum)
    IfNoConflict = 'if-no-conflict'
    Always = 'always'
class AllOfMergeMode(Enum)
    Constraints = 'constraints'
    All = 'all'
    NoMerge = 'none'
class AsyncAPIVersion(Enum)
    V2 = '2.0'
    V3 = '3.0'
    Auto = 'auto'
class ClassNameAffixScope(Enum)
    All = 'all'
    Models = 'models'
    Enums = 'enums'
class ClientAsyncAPIPerspective(Enum)
    Server = 'server'
    Client = 'client'
class ClientBodyArguments(Enum)
    Body = 'body'
    Both = 'both'
class ClientSignatureStyle(Enum)
    Explicit = 'explicit'
    Unpack = 'unpack'
class ClientType(Enum)
    HTTPX2 = 'httpx2'
class CollapseRootModelsNameStrategy(Enum)
    Child = 'child'
    Parent = 'parent'
class ConstructorFieldOrder(Enum)
    FinalNames = 'final-names'
    WrittenDefaults = 'written-defaults'
class CustomFileHeaderMode(Enum)
    Replace = 'replace'
    Prepend = 'prepend'
DEFAULT_SHARED_MODULE_NAME: Final[str] = 'shared'
class DataModelType(Enum)
    PydanticV2BaseModel = 'pydantic_v2.BaseModel'
    PydanticV2Dataclass = 'pydantic_v2.dataclass'
    DataclassesDataclass = 'dataclasses.dataclass'
    TypingTypedDict = 'typing.TypedDict'
    MsgspecStruct = 'msgspec.Struct'
class DataclassArguments(TypedDict, total=False)
    init: bool
    repr: bool
    eq: bool
    order: bool
    unsafe_hash: bool
    frozen: bool
    match_args: bool
    kw_only: bool
    slots: bool
    weakref_slot: bool
class DefaultValueType(Enum)
    Decimal = 'decimal'
    Enum = 'enum'
class ExtraFields(str, Enum)
    Allow = 'allow'
    Ignore = 'ignore'
    Forbid = 'forbid'
class FieldTypeCollisionStrategy(Enum)
    RenameField = 'rename-field'
    RenameType = 'rename-type'
class GraphQLScope(Enum)
    Schema = 'schema'
class HTTPBackend(Enum)
    AUTO = 'auto'
    HTTPX = 'httpx'
    HTTPX2 = 'httpx2'
class InputFileType(Enum)
    Auto = 'auto'
    OpenAPI = 'openapi'
    AsyncAPI = 'asyncapi'
    JsonSchema = 'jsonschema'
    MCPTools = 'mcp-tools'
    XMLSchema = 'xmlschema'
    Protobuf = 'protobuf'
    Avro = 'avro'
    Json = 'json'
    Yaml = 'yaml'
    Dict = 'dict'
    CSV = 'csv'
    GraphQL = 'graphql'
class InputModelRefStrategy(Enum)
    RegenerateAll = 'regenerate-all'
    ReuseForeign = 'reuse-foreign'
    ReuseAll = 'reuse-all'
class JsonSchemaVersion(Enum)
    Draft4 = 'draft-04'
    Draft6 = 'draft-06'
    Draft7 = 'draft-07'
    Draft201909 = '2019-09'
    Draft202012 = '2020-12'
    Auto = 'auto'
MAX_VERSION: Final[int] = 15
MIN_VERSION: Final[int] = 10
class ModuleSplitMode(Enum)
    Single = 'single'
class NamingStrategy(Enum)
    Numbered = 'numbered'
    ParentPrefixed = 'parent-prefixed'
    FullPath = 'full-path'
    PrimaryFirst = 'primary-first'
    DefinitionsFirst = 'definitions-first'
    EnclosingModel = 'enclosing-model'
class OpenAPIAsDefinitions(Enum)
    PathsBodies = 'paths-bodies'
    RefComponents = 'ref-components'
class OpenAPIScope(Enum)
    Schemas = 'schemas'
    Paths = 'paths'
    Tags = 'tags'
    Parameters = 'parameters'
    Webhooks = 'webhooks'
    RequestBodies = 'requestbodies'
    Api = 'api'
class OpenAPIVersion(Enum)
    V30 = '3.0'
    V31 = '3.1'
    V32 = '3.2'
    Auto = 'auto'
class OpenEnums(Enum)
    None_ = 'none'
    Extensible = 'extensible'
    All = 'all'
class ProtobufVersion(Enum)
    Proto2 = 'proto2'
    Proto3 = 'proto3'
    Edition2023 = '2023'
    Auto = 'auto'
class ReadOnlyWriteOnlyModelType(Enum)
    RequestResponse = 'request-response'
    All = 'all'
class ReuseScope(Enum)
    Module = 'module'
    Tree = 'tree'
class SchemaValidatorType(Enum)
    PydanticV2 = 'pydantic-v2'
class ServerBodyMode(Enum)
    Typed = 'typed'
    Request = 'request'
class ServerHandlerMode(Enum)
    Sync = 'sync'
    Async = 'async'
class ServerLayout(Enum)
    Routers = 'routers'
    Single = 'single'
class ServerType(Enum)
    FastAPI = 'fastapi'
class StrictTypes(Enum)
    str = 'str'
    bytes = 'bytes'
    int = 'int'
    float = 'float'
    bool = 'bool'
    datetime = 'datetime'
    date = 'date'
    time = 'time'
class TargetPydanticVersion(Enum)
    V2 = '2'
    V2_11 = '2.11'
    V2_12 = '2.12'
    V2_14 = '2.14'
class UnionMode(Enum)
    smart = 'smart'
    left_to_right = 'left_to_right'
class VersionMode(Enum)
    Lenient = 'lenient'
    Strict = 'strict'
class XMLSchemaVersion(Enum)
    V10 = '1.0'
    V11 = '1.1'
    Auto = 'auto'

[datamodel_code_generator.experimental]
EXPERIMENTAL_FEATURES: dict[ExperimentalFeatureId, ExperimentalFeature] = <dict of 21>
@dataclass(frozen=True)
class ExperimentalFeature
    id: ExperimentalFeatureId
    kind: ExperimentalFeatureKind
    target: str
    message: str
    since_version: str
    tracking_issue: str | None = None
    note: str | None = None
ExperimentalFeatureFormat = Literal['table', 'json', 'markdown']
ExperimentalFeatureId = Literal[<tuple of 21>]
ExperimentalFeatureKind = Literal['input-format', 'formatter', 'cli-option', 'python-api', 'behavior', 'extra']
def experimental_feature_as_dict(feature: ExperimentalFeature) -> dict[str, str | None]
fill = textwrap.fill
def iter_experimental_features() -> tuple[ExperimentalFeature, ...]
def render_experimental_features(format_: ExperimentalFeatureFormat) -> str
def render_experimental_features_json() -> str
def render_experimental_features_markdown(*, include_header: bool=True) -> str
def render_experimental_features_table() -> str
def render_release_note_experimental_features(version: str) -> str

[datamodel_code_generator.format]
def __getattr__(name: str) -> Any
    | if name not in _BUILTIN_FORMATTER_REEXPORTS:
    |     msg = f"module {__name__!r} has no attribute {name!r}"
    |     raise AttributeError(msg)
    | value = _builtin_formatter_attr(name)
    | globals()[name] = value
    | return value
    uses _BUILTIN_FORMATTER_REEXPORTS: tuple[str, ...] = ('_AliasSortCategory', '_ImportCategory', '_is_valid_builtin_line_length', '_line_indent', '_find_pyproject_toml', '_get_builtin_line_length', '_get_builtin_known_first_party', '_get_builtin_string_normalization', '_format_alias', '_alias_imported_name', '_alias_sort_key', '_format_from_import', '_import_category', '_has_inline_comment', '_format_import_node_without_reordering', '_import_node_category', '_from_import_key', '_modules_with_aliased_imports', '_iter_aliased_from_import_lines', '_import_line_sort_key', '_build_builtin_import_block', '_is_name_or_attr', '_LineReplacement', '_collect_builtin_replacements', '_module_docstring_node', '_docstring_node', '_iter_module_import_nodes', '_apply_line_replacements', '_previous_non_empty_line_index', '_normalize_top_level_blank_lines', '_normalize_string_quotes', '_finalize_builtin_code')
class CodeFormatter
    def __init__(self, python_version: PythonVersion, settings_path: Path | None=None, wrap_string_literal: bool | None=None, skip_string_normalization: bool=True, known_third_party: list[str] | None=None, custom_formatters: list[str] | None=None, custom_formatters_kwargs: dict[str, Any] | None=None, encoding: str='utf-8', formatters: list[Formatter] | None=None, builtin_format_line_length: int | None=None, use_type_checking_imports: bool=True, defer_formatting: bool=False, formatter_cwd: Path | None=None) -> None
    def format_code(self, code: str) -> str
    def apply_black(self, code: str) -> str
    @staticmethod
    def apply_builtin_formatter(code: str, *, line_length: int=DEFAULT_LINE_LENGTH, known_first_party: frozenset[str]=DEFAULT_KNOWN_FIRST_PARTY, wrap_string_literal: bool=False, string_normalization: bool=False, python_version: PythonVersion | None=None) -> str
    def apply_ruff_lint(self, code: str) -> str
    def apply_ruff_formatter(self, code: str) -> str
    def apply_ruff_check_and_format(self, code: str) -> str
    def apply_isort(self, code: str) -> str
    def format_directory(self, directory: Path, files: Iterable[Path]=()) -> None
    self.settings_path
    self.defer_formatting
    self.encoding
    self.use_type_checking_imports
    self.python_version
    self.formatters
    self.use_builtin_formatter
    self.builtin_line_length
    self.builtin_known_first_party
    self.builtin_wrap_string_literal
    self.builtin_string_normalization
    self.black_mode
    self.isort_config_kwargs
    self.isort_config
    self.custom_formatters_kwargs
    self.custom_formatters
class CustomCodeFormatter
    def __init__(self, formatter_kwargs: dict[str, Any]) -> None
    def apply(self, code: str) -> str
    self.formatter_kwargs
DEFAULT_FORMATTERS = datamodel_code_generator.DEFAULT_FORMATTERS
DEFAULT_KNOWN_FIRST_PARTY = frozenset({'datamodel_code_generator', 'tests'})
DEFAULT_LINE_LENGTH = 88
class DateClassType(Enum)
    Date = 'date'
    Pastdate = 'PastDate'
    Futuredate = 'FutureDate'
class DatetimeClassType(Enum)
    Datetime = 'datetime'
    Awaredatetime = 'AwareDatetime'
    Naivedatetime = 'NaiveDatetime'
    Pastdatetime = 'PastDatetime'
    Futuredatetime = 'FutureDatetime'
EXTERNAL_FORMATTERS = frozenset({Formatter.BLACK, Formatter.ISORT, Formatter.RUFF_CHECK, Formatter.RUFF_FORMAT})
class Formatter(Enum)
    BUILTIN = 'builtin'
    BLACK = 'black'
    ISORT = 'isort'
    RUFF_CHECK = 'ruff-check'
    RUFF_FORMAT = 'ruff-format'
LONG_TARGET_PREFIX_LENGTH = 30
MAX_SHORT_DEFAULT_OVERFLOW = 13
MAX_TOP_LEVEL_BLANK_LINES = 2
class PythonVersion(Enum)
    PY_310 = '3.10'
    PY_311 = '3.11'
    PY_312 = '3.12'
    PY_313 = '3.13'
    PY_314 = '3.14'
    PY_315 = '3.15'
    @cached_property
    def version_key(self) -> tuple[int, int]
    @property
    def has_union_operator(self) -> bool
    @property
    def has_type_alias(self) -> bool
    @property
    def has_typed_dict_non_required(self) -> bool
    @property
    def has_typed_dict_read_only(self) -> bool
    @property
    def has_typed_dict_closed(self) -> bool
    @property
    def has_kw_only_dataclass(self) -> bool
    @property
    def has_type_statement(self) -> bool
    @property
    def has_string_arguments_in_builtin_generics(self) -> bool
    @property
    def has_native_deferred_annotations(self) -> bool
    @property
    def has_strenum(self) -> bool
PythonVersionMin = datamodel_code_generator._format_types.PythonVersion.PY_310
STRING_PREFIX_PATTERN = re.compile('(?i)^([rubf]*)(\\"\\"\\"|\'\'\'|\\"|\')')
TYPE_ALIAS_INLINE_ARGUMENT_COUNT = 2
def apply_builtin_formatter(code: str, *, line_length: int=DEFAULT_LINE_LENGTH, known_first_party: frozenset[str]=DEFAULT_KNOWN_FIRST_PARTY, wrap_string_literal: bool=False, string_normalization: bool=False, python_version: PythonVersion | None=None) -> str
def black_find_project_root(sources: Sequence[Path]) -> Path
def is_supported_in_black(python_version: PythonVersion) -> bool
def resolve_use_type_checking_imports(use_type_checking_imports: bool | None, *, is_multi_module_output: bool, formatters: list[Formatter] | None, requires_runtime_imports_with_ruff_check: bool) -> bool
def unsupported_black_message(python_version: PythonVersion) -> str

[datamodel_code_generator.http]
DEFAULT_HTTP_TIMEOUT = 30.0
MAX_HTTP_REDIRECTS = 20
def get_body(url: str, headers: Sequence[tuple[str, str]] | None=None, ignore_tls: bool=False, query_parameters: Sequence[tuple[str, str]] | None=None, timeout: float=DEFAULT_HTTP_TIMEOUT, *, allow_private_network: bool=False, http_backend: HTTPBackend=HTTPBackend.AUTO, response_observer: Callable[[str, Sequence[tuple[str, str]] | None, Sequence[tuple[str, str]] | None, bytes], None] | None=None, encoding: str='utf-8') -> str
def join_url(url: str, ref: str='.', *, http_backend: HTTPBackend=HTTPBackend.AUTO) -> str

[datamodel_code_generator.imports]
IMPORT_ABC_MAPPING = Import.from_full_path('collections.abc.Mapping')
IMPORT_ABC_SEQUENCE = Import.from_full_path('collections.abc.Sequence')
IMPORT_ABC_SET = Import.from_full_path('collections.abc.Set')
IMPORT_ANNOTATED = Import.from_full_path('typing.Annotated')
IMPORT_ANNOTATIONS = Import.from_full_path('__future__.annotations')
IMPORT_ANY = Import.from_full_path('typing.Any')
IMPORT_DATE = Import.from_full_path('datetime.date')
IMPORT_DATETIME = Import.from_full_path('datetime.datetime')
IMPORT_DATETIME_MODULE = Import(import_='datetime', alias='datetime_module')
IMPORT_DECIMAL = Import.from_full_path('decimal.Decimal')
IMPORT_DICT = Import.from_full_path('typing.Dict')
IMPORT_ENUM = Import.from_full_path('enum.Enum')
IMPORT_FROZEN_SET = Import.from_full_path('typing.FrozenSet')
IMPORT_INT_ENUM = Import.from_full_path('enum.IntEnum')
IMPORT_IPV4ADDRESS = Import.from_full_path('ipaddress.IPv4Address')
IMPORT_IPV4NETWORK = Import.from_full_path('ipaddress.IPv4Network')
IMPORT_IPV6ADDRESS = Import.from_full_path('ipaddress.IPv6Address')
IMPORT_IPV6NETWORK = Import.from_full_path('ipaddress.IPv6Network')
IMPORT_LIST = Import.from_full_path('typing.List')
IMPORT_LITERAL = Import.from_full_path('typing.Literal')
IMPORT_MAPPING = Import.from_full_path('typing.Mapping')
IMPORT_OPTIONAL = Import.from_full_path('typing.Optional')
IMPORT_PATH = Import.from_full_path('pathlib.Path')
IMPORT_PENDULUM_DATE = Import.from_full_path('pendulum.Date')
IMPORT_PENDULUM_DATETIME = Import.from_full_path('pendulum.DateTime')
IMPORT_PENDULUM_DURATION = Import.from_full_path('pendulum.Duration')
IMPORT_PENDULUM_TIME = Import.from_full_path('pendulum.Time')
IMPORT_SEQUENCE = Import.from_full_path('typing.Sequence')
IMPORT_SET = Import.from_full_path('typing.Set')
IMPORT_STR_ENUM = Import.from_full_path('enum.StrEnum')
IMPORT_TIME = Import.from_full_path('datetime.time')
IMPORT_TIMEDELTA = Import.from_full_path('datetime.timedelta')
IMPORT_TUPLE = Import.from_full_path('typing.Tuple')
IMPORT_TYPE_ALIAS = Import.from_full_path('typing.TypeAlias')
IMPORT_TYPE_ALIAS_TYPE = Import.from_full_path(backport_path('python.type_statement'))
IMPORT_ULID = Import.from_full_path('ulid.ULID')
IMPORT_UNION = Import.from_full_path('typing.Union')
IMPORT_UUID = Import.from_full_path('uuid.UUID')
@dataclass(frozen=True)
class Import
    import_: str
    from_: str | None = None
    alias: str | None = None
    reference_path: str | None = None
    keep_unaliased: bool = False
    @property
    def is_future(self) -> bool
    @property
    def binding_name(self) -> str
    @classmethod
    @lru_cache(maxsize=4096)
    def from_full_path(cls, class_path: str) -> Import
class Imports(defaultdict[str | None, set[str]])
    def __str__(self) -> str
    def __init__(self, use_exact: bool=False) -> None
    def create_line(self, from_: str | None, imports: set[str]) -> str
    def dump(self) -> str
    def append(self, imports: Import | Iterable[Import] | None) -> None
    def remove(self, imports: Import | Iterable[Import]) -> None
    def remap_modules(self, import_overrides: Mapping[str, str]) -> None
    def remove_referenced_imports(self, reference_path: str) -> None
    def extract_future(self) -> Imports
    def add_export(self, name: str) -> None
    def dump_all(self, *, multiline: bool=False) -> str
    def get_effective_name(self, from_: str | None, import_: str) -> str
    def apply_alias(self, import_: Import) -> None
    def remove_unused(self, used_names: set[str]) -> None
    self.alias
    self.counter
    self.reference_paths
    self.use_exact

[datamodel_code_generator.input_model]
class Error(Exception)
def load_model_schema(input_models: list[str], input_file_type: InputFileType, ref_strategy: InputModelRefStrategy | None=None, output_model_type: DataModelType | None=None, *, read_dataclass_fields_by_alias: bool=False, reuse_every_reached_type: bool=False) -> dict[str, object]

[datamodel_code_generator.input_model_result]
__all__ = [
    'LoadedInputModelSchema',
    'PythonTypeSchemaAnnotation',
    'is_legacy_python_type_token',
]
@dataclass(frozen=True, slots=True, init=False)
class LoadedInputModelSchema(Mapping[str, object])
    # identity datamodel_code_generator._input_model_transport.LoadedInputModelSchema
    schema: dict[str, object]
    def __init__(self, schema: dict[str, object], python_type_expressions: Mapping[str, PythonTypeExpr] | None=None) -> None
    def __getitem__(self, key: str) -> object
    def __iter__(self) -> Iterator[str]
    def __len__(self) -> int
    @property
    def name(self) -> str
    @property
    def legacy_python_type_expressions(self) -> Mapping[str, PythonTypeExpr] | None
    @property
    def python_type_expressions(self) -> Mapping[str, PythonTypeExpr]
class PythonFieldOverrides
    __slots__ = ('_fields',)
    def __init__(self, fields: Mapping[str, str]) -> None
    @property
    def fields(self) -> Mapping[str, str]
    def __deepcopy__(self, _memo: dict[int, object]) -> PythonFieldOverrides
class PythonModelBases(list[dict[str, str]])
    __slots__ = ('_python_field_overrides',)
    def __init__(self, reference: str, fields: Mapping[str, str]) -> None
class PythonTypeSchemaAnnotation
    __slots__ = ('_expression', '_legacy_token')
    def __init__(self, expression: PythonTypeExpr, legacy_token: str | None=None) -> None
    @property
    def expression(self) -> PythonTypeExpr
    @property
    def legacy_token(self) -> str | None
    def __deepcopy__(self, _memo: dict[int, object]) -> PythonTypeSchemaAnnotation
def is_legacy_python_type_token(value: object) -> bool

[datamodel_code_generator.json_config]
class ClientOperationsConfig(RootModel[dict[str, dict[str, Any]]])
    model_config = ConfigDict(defer_build=True)
class ClientProtocolsConfig(RootModel[dict[str, Any]])
    model_config = ConfigDict(defer_build=True)
class DefaultValuesConfig(RootModel[dict[str, Any]])
class DuplicateNameSuffixConfig(RootModel[dict[Literal['model', 'enum', 'default'], str]])
class EnumFieldAsLiteralMapConfig(RootModel[dict[str, Literal['literal', 'enum']]])
class ExtraTemplateDataConfig(RootModel[dict[str, dict[str, Any]]])
JSON_SCHEMA_DRAFT_2020_12 = 'https://json-schema.org/draft/2020-12/schema'
class JsonConfigError(Exception)
JsonConfigErrorName: TypeAlias = Literal['alias mapping', 'custom_formatters_kwargs mapping', 'default values mapping', 'extra template data', 'serialization alias mapping', 'validators configuration']
JsonConfigFieldName: TypeAlias = Literal['aliases', 'base_class_map', 'client_operations', 'client_protocols', 'client_resource_names', 'custom_formatters_kwargs', 'default_values', 'duplicate_name_suffix', 'enum_field_as_literal_map', 'extra_template_data', 'import_overrides', 'model_name_map', 'open_enum_base_class_map', 'serialization_aliases', 'server_body_modes', 'server_handler_modes', 'server_operation_names', 'server_parameter_names', 'server_primary_responses', 'server_router_names', 'type_overrides', 'validators']
JsonConfigLegacyModel: TypeAlias = type[StringMappingConfig] | type[LegacyExtraTemplateDataConfig]
JsonConfigOptionName: TypeAlias = Literal['--aliases', '--base-class-map', '--client-operations', '--client-protocols', '--client-resource-names', '--custom-formatters-kwargs', '--default-values', '--duplicate-name-suffix', '--enum-field-as-literal-map', '--extra-template-data', '--import-overrides', '--model-name-map', '--open-enum-base-class-map', '--serialization-aliases', '--server-body-modes', '--server-handler-modes', '--server-operation-names', '--server-parameter-names', '--server-primary-responses', '--server-router-names', '--type-overrides', '--validators']
class JsonConfigSchemasPayload(BaseModel)
    model_config = ConfigDict(extra='forbid', populate_by_name=True, protected_namespaces=(), defer_build=True)
    aliases: StringOrStringListMappingConfig | None = Field(default=None)
    base_class_map: StringOrStringListMappingConfig | None = Field(default=None, alias='base-class-map')
    client_operations: ClientOperationsConfig | None = Field(default=None, alias='client-operations')
    client_protocols: ClientProtocolsConfig | None = Field(default=None, alias='client-protocols')
    client_resource_names: StringMappingConfig | None = Field(default=None, alias='client-resource-names')
    custom_formatters_kwargs: StringMappingConfig | None = Field(default=None, alias='custom-formatters-kwargs')
    default_values: DefaultValuesConfig | None = Field(default=None, alias='default-values')
    duplicate_name_suffix: DuplicateNameSuffixConfig | None = Field(default=None, alias='duplicate-name-suffix')
    enum_field_as_literal_map: EnumFieldAsLiteralMapConfig | None = Field(default=None, alias='enum-field-as-literal-map')
    extra_template_data: ExtraTemplateDataConfig | None = Field(default=None, alias='extra-template-data')
    import_overrides: StringMappingConfig | None = Field(default=None, alias='import-overrides')
    model_name_map: StringMappingConfig | None = Field(default=None, alias='model-name-map')
    open_enum_base_class_map: OpenEnumBaseClassMapConfig | None = Field(default=None, alias='open-enum-base-class-map')
    serialization_aliases: StringMappingConfig | None = Field(default=None, alias='serialization-aliases')
    server_body_modes: ServerBodyModesConfig | None = Field(default=None, alias='server-body-modes')
    server_handler_modes: ServerHandlerModesConfig | None = Field(default=None, alias='server-handler-modes')
    server_operation_names: StringMappingConfig | None = Field(default=None, alias='server-operation-names')
    server_parameter_names: ServerParameterNamesConfig | None = Field(default=None, alias='server-parameter-names')
    server_primary_responses: ServerPrimaryResponsesConfig | None = Field(default=None, alias='server-primary-responses')
    server_router_names: StringMappingConfig | None = Field(default=None, alias='server-router-names')
    type_overrides: StringMappingConfig | None = Field(default=None, alias='type-overrides')
    validators: ValidatorsConfig | None = Field(default=None)
JsonConfigSource: TypeAlias = str | Path | TextIOBase | dict[str, Any] | None
@dataclass(frozen=True)
class JsonConfigSpec
    option_name: JsonConfigOptionName
    strict_model: JsonConfigStrictModel
    legacy_model: JsonConfigLegacyModel | None = None
    as_defaultdict: bool = False
    load_error_name: JsonConfigErrorName | None = None
    validation_error_name: JsonConfigErrorName | None = None
    validation_error_message: str | None = None
    max_depth: int | None = None
    def validate(self, raw: Any) -> Any
class JsonConfigSpecs
    by_field_name: ClassVar[dict[JsonConfigFieldName, JsonConfigSpec]] = <dict of 22>
        uses CLIENT_PROTOCOLS_MAX_DEPTH: Final = 64
JsonConfigStrictModel: TypeAlias = type[StringMappingConfig] | type[StringOrStringListMappingConfig] | type[EnumFieldAsLiteralMapConfig] | type[DuplicateNameSuffixConfig] | type[OpenEnumBaseClassMapConfig] | type[DefaultValuesConfig] | type[ExtraTemplateDataConfig] | type[ClientOperationsConfig] | type[ClientProtocolsConfig] | type[ServerHandlerModesConfig] | type[ServerBodyModesConfig] | type[ServerPrimaryResponsesConfig] | type[ServerParameterNamesConfig] | type[ValidatorsConfig]
class LegacyExtraTemplateDataConfig(RootModel[dict[str, Any]])
class OpenEnumBaseClassMapConfig(RootModel[dict[Literal['Enum', 'StrEnum', 'IntEnum'], str]])
class ServerBodyModesConfig(RootModel[dict[str, Literal['typed', 'request']]])
    model_config = ConfigDict(defer_build=True)
class ServerHandlerModesConfig(RootModel[dict[str, Literal['sync', 'async']]])
    model_config = ConfigDict(defer_build=True)
class ServerParameterNamesConfig(RootModel[dict[str, dict[str, str]]])
    model_config = ConfigDict(defer_build=True)
class ServerPrimaryResponseConfig(BaseModel)
    model_config = ConfigDict(extra='forbid', defer_build=True)
    status_code: int = Field(strict=True, ge=100, le=599)
    media_type: str | None = None
class ServerPrimaryResponsesConfig(RootModel[dict[str, ServerPrimaryResponseConfig]])
    model_config = ConfigDict(defer_build=True)
class StringMappingConfig(RootModel[dict[str, str]])
class StringOrStringListMappingConfig(RootModel[dict[str, str | list[str]]])
def document_base(value: Any, directory: Path, fallback: Path) -> Path
def json_config_json_schema() -> str
def load_json_config_field(field_name: JsonConfigFieldName, value: JsonConfigSource) -> Any
def validate_json_value_or_file(value: str, *, option_name: str='') -> dict[str, object]

[datamodel_code_generator.model]
submodules: base, dataclass, enum, field_name, imports, msgspec, output, pydantic_base, pydantic_v2, runtime_validation, scalar, type_alias, typed_dict, types, union
__all__ = [
    'DEFAULT_TARGET_PYTHON_VERSION',
    'UNDEFINED',
    'ConstraintsBase',
    'DataModel',
    'DataModelFieldBase',
    'DataModelSet',
    '_rebuild_model_with_datamodel_namespace',
    'get_data_model_types',
]
ConstraintsBase = datamodel_code_generator.model.base.ConstraintsBase
DEFAULT_TARGET_PYTHON_VERSION = PythonVersion(f"{sys.version_info.major}.{sys.version_info.minor}")  [try]
DEFAULT_TARGET_PYTHON_VERSION: Final = max(PythonVersion, key=lambda version: version.version_key)  [except ValueError]
DataModel = datamodel_code_generator.model.base.DataModel
DataModelFieldBase = datamodel_code_generator.model.base.DataModelFieldBase
class DataModelSet(NamedTuple)
    data_model: type[DataModel]
    root_model: type[DataModel]
    field_model: type[DataModelFieldBase]
    data_type_manager: type[DataTypeManagerABC]
    dump_resolve_reference_action: Callable[[Iterable[str]], str] | None
    scalar_model: type[DataModel]
    union_model: type[DataModel]
    known_third_party: list[str] | None = None
NEWEST_TARGET = datamodel_code_generator.model.DEFAULT_TARGET_PYTHON_VERSION
PythonVersion = datamodel_code_generator.format.PythonVersion
UNDEFINED = datamodel_code_generator.model.base.UNDEFINED
def _rebuild_model_with_datamodel_namespace(model: type[Any]) -> None
    # identity datamodel_code_generator.model.base._rebuild_model_with_datamodel_namespace
def get_data_model_types(data_model_type: DataModelType, target_python_version: PythonVersion=DEFAULT_TARGET_PYTHON_VERSION, use_type_alias: bool=False, use_root_model_type_alias: bool=False, include_graphql_models: bool=True, use_type_alias_type: bool=False, target_pydantic_version: TargetPydanticVersion | None=None) -> DataModelSet
def implied_options(values: Mapping[str, object]) -> dict[str, bool]
    # identity datamodel_code_generator._option_rules.implied_options
def pydantic_target_meets(construct: PydanticConstruct, target: TargetPydanticVersion | str | None) -> bool
    # identity datamodel_code_generator._requirements.pydantic_target_meets
def python_target_meets(construct: PythonConstruct, version_key: tuple[int, int]) -> bool
    # identity datamodel_code_generator._requirements.python_target_meets

[datamodel_code_generator.model.base]
ALL_MODEL: str = '#all#'
class BaseClassDataType(DataType)
    @property
    @override
    def adds_reference_null(self) -> bool
class BaseLayoutView(NamedTuple)
    is_slot: Callable[[DataModelFieldBase], bool]
    layout_model: Callable[[DataModel], DataModel]
    is_opaque: Callable[[DataModel], bool]
class ConstraintsBase(_BaseModel)
    unique_items: Optional[bool] = Field(None, alias='uniqueItems')
    model_config = ConfigDict(arbitrary_types_allowed=True, ignored_types=(cached_property,), defer_build=True)
    @cached_property
    def has_constraints(self) -> bool
    def set_values(self, *, exclude: set[str] | None=None) -> dict[str, Any]
    @staticmethod
    def merge_constraints(a: ConstraintsBaseT | None, b: ConstraintsBaseT | None) -> ConstraintsBaseT | None
ConstraintsBaseT = TypeVar('ConstraintsBaseT', bound='ConstraintsBase')
class DataModel(TemplateBase, Nullable, ABC)
    target_python_version: PythonVersion = NEWEST_TARGET
    reused_reference: Reference | None = None
    TEMPLATE_FILE_PATH: ClassVar[str] = ''
    BASE_CLASS: ClassVar[str] = ''
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = ()
    IS_ALIAS: ClassVar[bool] = False
    IS_ROOT_MODEL: ClassVar[bool] = False
    DEFERS_RECURSIVE_TYPE_HINT: ClassVar[bool] = False
    SUPPORTS_GENERIC_BASE_CLASS: ClassVar[bool] = True
    FIRST_BASE_CONFIGURES: ClassVar[bool] = False
    FIELD_ASSIGNMENT_CHECKER: ClassVar[Callable[[DataModelFieldBase], bool]] = staticmethod(_has_field_assignment)
    FIELD_DEFAULT_CLASSIFIER: ClassVar[Callable[[DataModelFieldBase], tuple[bool, bool]]] = staticmethod(_get_field_default_info)
    FIELD_PARTICIPATES_IN_CONSTRUCTOR: ClassVar[Callable[[DataModelFieldBase], bool]] = staticmethod(_field_participates_in_constructor)
    FIELD_CONSTRUCTION_ORDER_KEY: ClassVar[Callable[[DataModelFieldBase], bool] | None] = None
    SUPPORTS_TREE_SCOPE_REUSE_MODEL_INHERITANCE: ClassVar[bool] = False
    FIELD_NAME_MODEL_TYPE: ClassVar[Any] = None
    FIELD_NAME_RESOLVER_CLASS: ClassVar[Any] = None
    EXPLICIT_ALIAS_CONFLICT_CHECKER: ClassVar[Callable[[DataModelFieldBase, str], bool] | None] = None
    USES_DATACLASS_ARGUMENTS: ClassVar[bool] = False
    SUPPORTS_REQUIRED_INHERITED_FIELD_ASSIGNMENT: ClassVar[bool] = False
    REQUIRES_EXPLICIT_INHERITED_FACTORY_OVERRIDE: ClassVar[bool] = False
    REQUIRED_ASSIGNMENT_COUNTS_AS_CONSTRUCTOR_DEFAULT: ClassVar[bool] = False
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = False
    SUPPORTS_INHERITED_DISCRIMINATOR_ENUM: ClassVar[bool] = False
    SUPPORTS_FIELD_RENAMING: ClassVar[bool] = False
    SUPPORTS_FIELD_TYPE_RENAMING: ClassVar[bool] = False
    HIDING_FIELD_RESOLUTION: ClassVar[Literal['field', 'type'] | None] = None
    NORMALIZES_FIELD_NAMES: ClassVar[bool] = False
    RESOLVES_STRING_ANNOTATIONS_FROM_MODULE: ClassVar[bool] = False
    WRITES_QUOTED_NAMES_IN_TYPING_GENERICS: ClassVar[bool] = False
    SUPPORTS_KW_ONLY: ClassVar[bool] = False
    REQUIRES_MODEL_LEVEL_KW_ONLY: ClassVar[bool] = False
    SUPPORTS_BOOLEAN_LITERAL: ClassVar[bool] = True
    SUPPORTS_NULL_ENUM_MEMBER: ClassVar[bool] = True
    REQUIRES_FIELD_DEPENDENCY_ORDERING: ClassVar[bool] = False
    REQUIRES_TAGGED_UNION_DISCRIMINATOR: ClassVar[bool] = False
    REQUIRES_UNIQUE_FIELD_ALIASES: ClassVar[bool] = False
    FLATTENS_CONFLICTING_BASE_LAYOUTS: ClassVar[bool] = False
    REQUIRES_ADDITIONAL_PROPERTIES_REFERENCE_CLASSES: ClassVar[bool] = False
    SUPPORTS_TYPED_DICT_TOTAL_FALSE: ClassVar[bool] = False
    SUPPORTS_DESERIALIZED_DEFAULT_VALUES: ClassVar[bool] = True
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = False
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = None
    TYPED_EXTRA_FIELD_NAME: ClassVar[str | None] = None
    TYPED_EXTRA_PLAIN_ANNOTATION_TEMPLATE_DATA_KEY: ClassVar[str | None] = None
    REQUIRES_RUNTIME_IMPORTS_WITH_RUFF_CHECK: ClassVar[bool] = False
    REQUIRES_EXPLICIT_DEFERRED_ANNOTATIONS_FOR_FORWARD_REFS: ClassVar[bool] = False
    SUPPORTS_SCHEMA_RUNTIME_VALIDATION: ClassVar[bool] = False
    WRITES_CLOSED_ADDITIONAL_PROPERTIES: ClassVar[bool] = False
    ROOT_MODEL_CONSTRAINTS_FALLBACK: ClassVar[Callable[[Path | None], Callable[[list[DataModelFieldBase]], type[DataModel] | None] | None] | None] = None
    PLAIN_PATTERN_ROOT_TYPES: ClassVar[Callable[[], tuple[type[DataModel], type[DataModel], type[DataModelFieldBase], type[_types.DataTypeManager]]] | None] = None
    PLAIN_PATTERN_ROOT_CHECKER: ClassVar[Callable[[type[DataModel], type[DataModel], type[DataModelFieldBase], type[_types.DataTypeManager], Iterable[DataType]], bool] | None] = None
    SCHEMA_RUNTIME_VALIDATION_ROOT_MODEL: ClassVar[Callable[[], type[DataModel]] | None] = None
    DOCSTRING_INDENT: ClassVar[int] = 4
    FIELD_DOCSTRING_INDENT: ClassVar[int] = 4
    FORMAT_DESCRIPTION_AS_DOCSTRING: ClassVar[bool] = True
    CUSTOM_TEMPLATE_ADAPTER: ClassVar[Callable[[Template], Template] | None] = None
    has_forward_reference: bool = False
    serialized_as_any: bool | None = None
    discriminator_tag: tuple[Any, Any] | None = None
    @classmethod
    def resolve_module_import_conflicts(cls, models: Iterable[DataModel], model_imports: Mapping[DataModel, tuple[Import, ...]], imports: Imports) -> None
    @classmethod
    def create_typed_extra_field(cls, *, field_model: type[DataModelFieldBase], data_type: DataType) -> DataModelFieldBase | None
    @classmethod
    def order_fields_for_construction(cls, fields: Iterable[DataModelFieldBase]) -> list[DataModelFieldBase]
    def apply_discriminator_tag(self, field: DataModelFieldBase, field_name: str, value: Any) -> bool
    def opt_out_of_inherited_tag(self) -> None
    def has_keyword_only_definition(self) -> bool
    def flatten_conflicting_base_layouts(self, view: BaseLayoutView, flatten: Callable[[DataModel], None]) -> None
    def adopt_base_options(self) -> None
    def flatten_base_layouts(self, adopt_field: Callable[[DataModelFieldBase, bool], DataModelFieldBase]) -> list[DataModelFieldBase]
    def orders_required_assignments_before_defaults(self) -> bool
    def keeps_assignment_with_required_fields(self, field: DataModelFieldBase) -> bool
    @classmethod
    def configure_annotations(cls, extra_template_data: defaultdict[str, dict[str, Any]], *, target_python_version: PythonVersion, use_deferred_annotations: bool) -> None
    @classmethod
    def configure_required_fields(cls, extra_template_data: defaultdict[str, dict[str, Any]], *, target_python_version: PythonVersion, use_total_false: bool) -> None
    @classmethod
    def configure_closed_typed_dict(cls, extra_template_data: defaultdict[str, dict[str, Any]], *, use_closed_typed_dict: bool) -> None
    @classmethod
    def configure_dataclass_arguments(cls, extra_template_data: defaultdict[str, dict[str, Any]], *, keep_false_dataclass_arguments: bool) -> None
    @property
    def written_dataclass_arguments(self) -> dict[str, Any]
    @staticmethod
    def requires_extra_items_backport(target_python_version: PythonVersion) -> bool
    @staticmethod
    def resolve_dataclass_arguments(arguments: DataclassArguments | None, *, frozen: bool, keyword_only: bool) -> DataclassArguments
    @classmethod
    def prepare_constructor_arguments(cls, arguments: dict[str, Any], *, dataclass_arguments: DataclassArguments | None, frozen: bool, keyword_only: bool) -> None
    def enable_model_keyword_only(self) -> None
    @classmethod
    def prepare_required_inherited_field(cls, field: DataModelFieldBase, inherited_field: DataModelFieldBase, *, explicit_extras: Collection[str]=()) -> None
    @staticmethod
    def finalize_required_inherited_field(field: DataModelFieldBase) -> None
    @classmethod
    def restore_required_inherited_field_state(cls, field: DataModelFieldBase) -> bool
    @classmethod
    def resolve_nested_constrained_model_type(cls, configured_root_model_type: type[DataModel]) -> type[DataModel]
    @classmethod
    def resolve_type_alias_model_type(cls, configured_root_model_type: type[DataModel], target_python_version: PythonVersion) -> type[DataModel]
    @staticmethod
    def store_additional_properties_value(extra_template_data: dict[str, Any], *, value: bool, use_backport: bool=False) -> None
    @staticmethod
    def has_additional_properties_type(extra_template_data: dict[str, Any]) -> bool
    @classmethod
    def store_additional_properties_type(cls, extra_template_data: dict[str, Any], type_hint: str, reference_classes: set[str] | None=None, *, root_model_type: type[DataModel] | None=None, imports: tuple[Import, ...]=(), use_backport: bool=False) -> None
    @classmethod
    def store_additional_properties_reference_classes(cls, extra_template_data: dict[str, Any], reference_classes: set[str], *, root_model_type: type[DataModel] | None=None) -> None
    @property
    def additional_properties_reference_classes(self) -> Collection[str]
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, frozen: bool=False, treat_dot_as_module: bool | None=None, dataclass_arguments: DataclassArguments | None=None) -> None
    def iter_all_fields(self, visited: set[ModelKey] | None=None) -> Iterator[DataModelFieldBase]
    def get_dedup_key(self, class_name: str | None=None, *, use_default: bool=True) -> tuple[Any, ...]
    def create_reuse_model(self, base_ref: Reference) -> Self
    def replace_children_in_models(self, models: list[DataModel], new_ref: Reference) -> None
    def set_base_class(self) -> None
    @cached_property
    @override
    def template_file_path(self) -> Path
    @cached_property
    @override
    def template(self) -> Template
    @property
    def imports(self) -> tuple[Import, ...]
    def field_binds_class_attribute(self, field: DataModelFieldBase) -> bool
    def field_name_hides_types(self, field: DataModelFieldBase) -> bool
    def unbind_fields(self, names: Collection[str | None]) -> bool
    def resolves_hidden_types_from_strings(self) -> bool
    def fields_evaluated_at_definition(self) -> Sequence[DataModelFieldBase]
    def class_attribute_hides_named_type(self, field: DataModelFieldBase, *, assigned: bool, resolved_late: bool, as_string: bool) -> bool
    def assigns_forward_reference_field(self, field: DataModelFieldBase, positions: Mapping[str, int], index: int) -> bool
    def assign_forward_reference_fields(self, positions: Mapping[str, int], index: int) -> bool
    @deprecated('DataModel.imports is computed at each read; there is no imports cache to clear.', category=None)
    def clear_imports_cache(self) -> None
    def invalidate_render_caches(self) -> None
    def refresh_field_config(self) -> None
    @classmethod
    def finalize_type_alias_users(cls, models: list[DataModel]) -> None
    @property
    def reference_classes(self) -> frozenset[str]
    @property
    def name(self) -> str
    @property
    def duplicate_name(self) -> str
    @property
    def base_class(self) -> str
    @property
    def class_name(self) -> str
    @class_name.setter
    def class_name(self, class_name: str) -> None
    @property
    def duplicate_class_name(self) -> str
    @property
    def module_path(self) -> list[str]
    @property
    def module_name(self) -> str
    @property
    def all_data_types(self) -> Iterator[DataType]
    @property
    def is_alias(self) -> bool
    @property
    def effective_fields(self) -> tuple[DataModelFieldBase, ...]
    @property
    def holds_null(self) -> bool
    @property
    def form(self) -> ModelForm
    @property
    def value_base(self) -> str | None
    @property
    def has_length(self) -> bool
    @classmethod
    def create_base_class_model(cls, config: dict[str, Any], reference: Reference, custom_template_dir: Path | None=None, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> DataModel | None
    @classmethod
    def render_module_code(cls, models: list[DataModel]) -> str
    @classmethod
    def get_module_code_insertion_index(cls, models: list[DataModel]) -> int
    def finalize_sequence_interface(self) -> None
    @property
    def additional_properties_type(self) -> DataType | None
    def enable_identity_hash(self) -> None
    def set_item_hash(self, *, user_imports: bool) -> SetItemHash
    @property
    def schema_runtime_validation(self) -> _runtime_validation.SchemaRuntimeValidation | None
    @property
    def schema_runtime_validation_references(self) -> tuple[Reference, ...]
    @property
    def has_runtime_object_validation(self) -> bool
    @property
    def has_model_config(self) -> bool
    @classmethod
    def prepare_module_code(cls, models: list[DataModel]) -> None
    @classmethod
    def invalidate_module_code_cache(cls, models: list[DataModel]) -> None
    @property
    def custom_template_dir(self) -> Path | None
    @property
    @override
    def nullable(self) -> bool
    @cached_property
    def path(self) -> str
    def set_reference_path(self, new_path: str) -> None
    @override
    def render(self, *, class_name: str | None=None) -> str
    def set_field_name_bindings(self, bindings: FieldNameBindings) -> None
    @property
    def use_single_line_docstring(self) -> bool
    @property
    def rendered_description(self) -> str
    @property
    def rendered_fields(self) -> list[DataModelFieldBase | _RenderedDataModelField]
    self.keyword_only
    self.frozen
    self.custom_base_class
    self.base_classes
    self.file_path
    self.reference
    self.extra_template_data
    self.fields
    self.dataclass_arguments
    self.decorators
    self.methods
    self.description
    self.default
class DataModelFieldBase(_BaseModel)
    PARSER_CONSTRUCTOR: ClassVar[Callable[..., DataModelFieldBase] | None] = None
    PREPARE_PYTHON_PATTERNS: ClassVar[Callable[[DataModelFieldBase, str, dict[str, PythonRuntimeExpression]], None] | None] = None
    PREPARE_TYPE_ALIAS_FIELD: ClassVar[Callable[[DataModelFieldBase, dict[str, PythonRuntimeExpression], Callable[[DataModelFieldBase, DataType], None]], bool] | None] = None
    WRITES_NO_CALL_WITHOUT_PLAN: ClassVar[Callable[[DataModelFieldBase], bool] | None] = None
    NEEDS_MODEL_REGEX_ENGINE: ClassVar[Callable[[list[DataModelFieldBase]], bool] | None] = None
    PATTERN_NEEDS_HOLDER_ENGINE: ClassVar[Callable[[type[DataModel], str, TargetPydanticVersion | None], bool] | None] = None
    SUPPORTS_FIELD_CONSTRAINTS: ClassVar[bool] = False
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = False
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = None
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = False
    VALIDATES_STRUCTURED_DEFAULTS: ClassVar[bool] = False
    model_config = ConfigDict(arbitrary_types_allowed=True, defer_build=True)
    name: Optional[str] = None
    default: Optional[Any] = None
    required: bool = False
    alias: Optional[str] = None
    validation_aliases: Optional[list[str]] = None
    serialization_alias: Optional[str] = None
    data_type: DataType
    constraints: Any = None
    strip_default_none: bool = False
    order_constructor_fields_by_written_defaults: bool = False
    nullable: Optional[bool] = None
    parent: Optional[DataModel] = None
    extras: dict[str, Any] = Field(default_factory=dict)
    use_annotated: bool = False
    use_serialize_as_any: bool = False
    has_default: bool = False
    use_field_description: bool = False
    use_field_description_example: bool = False
    use_inline_field_description: bool = False
    const: bool = False
    original_name: Optional[str] = None
    use_default_kwarg: bool = False
    use_missing_sentinel: bool = False
    use_one_literal_as_default: bool = False
    target_python_version: Optional[PythonVersion] = None
    can_have_extra_keys: ClassVar[bool] = True
    type_has_null: Optional[bool] = None
    read_only: bool = False
    write_only: bool = False
    use_frozen_field: bool = False
    use_serialization_alias: bool = False
    use_default_factory_for_optional_nested_models: bool = False
    use_default_with_required: bool = False
    def __init__(self, **data: Any) -> None
    def process_const(self) -> None
    def target_version_key(self, data_type: DataType) -> tuple[int, int]
    @property
    def dropped_constraints_warning(self) -> str | None
    @property
    def written_constraints(self) -> Mapping[str, Any]
    @property
    def union_sibling_constraints(self) -> Mapping[str, Any] | None
    @property
    def untaken_constraints(self) -> tuple[dict[str, Any], dict[str, str]]
    def record_untaken_constraints(self, untaken: dict[str, Any], minimums: dict[str, str]) -> None
    def pop_untaken_constraints(self) -> dict[str, Any]
    def inherit_untaken_constraints(self, source: DataModelFieldBase, *, whole_type: bool) -> None
    @property
    def overridden_constraints(self) -> tuple[str, int] | None
    def record_overridden_constraints(self, replaced: str, count: int) -> None
    def unconstrain_union_members(self, options: ConstraintOptions | None=None) -> bool | None
    def inherit_unconstrained_union_members(self, source: DataModelFieldBase) -> None
    @property
    def requires_immediate_forward_reference_resolution(self) -> bool
    def should_strip_default_none(self, *, keep_optional: bool=False) -> bool
    def self_reference(self) -> bool
    @property
    def type_hint(self) -> str
    @property
    def base_type_hint(self) -> str
    @property
    def imports(self) -> tuple[Import, ...]
    @property
    def runtime_expression_imports(self) -> tuple[Import, ...]
    @property
    def docstring(self) -> str | None
    @property
    def inline_field_docstring(self) -> str | None
    @property
    def unresolved_types(self) -> frozenset[str]
    @property
    def field(self) -> str | None
    def force_field_assignment(self) -> None
    def mark_as_keyword_only(self) -> None
    @property
    def constructor_keyword_only(self) -> bool | None
    @property
    def is_class_var(self) -> bool
    def enable_structured_default_validation(self) -> bool
    def constrained_value_type(self, data_type: DataType, seen: frozenset[int]=frozenset()) -> DataType | None
    @property
    def method(self) -> str | None
    @property
    def represented_default(self) -> str
    @property
    def annotated(self) -> str | None
    @property
    def needs_annotated_import(self) -> bool
    @property
    def has_default_factory(self) -> bool
    @property
    def fall_back_to_nullable(self) -> bool
    @property
    def nullable_without_default(self) -> bool | None
    def copy_deep(self) -> Self
    def copy_owning(self, *, data_type: DataType | None=None, register_references: bool=True, **values: Any) -> Self
    def alias_form(self, *, inherits: bool=False) -> dict[str, Any]
    def invalidate_semantic_caches(self, *, invalidate_parent: bool=True) -> None
    def replace_data_type(self, new_data_type: DataType, *, clear_old_parent: bool=True) -> None
DataModelFieldBaseT = TypeVar('DataModelFieldBaseT', bound='DataModelFieldBase')
GENERIC_BASE_CLASS_NAME: str = '__generic_base_class__'
GENERIC_BASE_CLASS_PATH: str = '#/__datamodel_code_generator__/generic_base_class__'
IMPORT_ANNOTATED = datamodel_code_generator.imports.IMPORT_ANNOTATED
IMPORT_ANY = datamodel_code_generator.imports.IMPORT_ANY
IMPORT_OPTIONAL = datamodel_code_generator.imports.IMPORT_OPTIONAL
IMPORT_UNION = datamodel_code_generator.imports.IMPORT_UNION
MroT = TypeVar('MroT')
NULLABLE_WITHOUT_DEFAULT_KEY: Final = '_nullable_without_default'
@record
class ResolveReferenceActionCapabilities
    filter_forward_references: bool = False
    generated_formatter_safe: bool = False
TEMPLATE_DIR: Path = Path(__file__).parents[0] / 'template'
TYPENAME_PROPERTY_KEY: Final = 'typename_property'
class TemplateBase(ABC)
    @cached_property
    @abstractmethod
    def template_file_path(self) -> Path
    @cached_property
    def template(self) -> Template
    @abstractmethod
    def render(self) -> str
    @override
    def __str__(self) -> str
UNDEFINED: Any = Sentinel('UNDEFINED')
accumulate = itertools.accumulate
ast = ast
@overload
def c3_merge(sequences: list[list[_T]], key: Callable[[_T], Hashable], *, rule: Literal['first-head']='first-head') -> list[_T]
    # identity datamodel_code_generator._mro.c3_merge
@overload
def c3_merge(sequences: list[list[_T]], key: Callable[[_T], Hashable], *, rule: Literal['python']) -> list[_T] | None
    # identity datamodel_code_generator._mro.c3_merge
def c3_merge(sequences: list[list[_T]], key: Callable[[_T], Hashable], *, rule: C3Rule='first-head') -> list[_T] | None
    # identity datamodel_code_generator._mro.c3_merge
def comment_safe(value: str | None) -> str | None
    # identity datamodel_code_generator._python_syntax.comment_safe
dataclass = dataclasses.dataclass
def declare_resolve_reference_action_capabilities(action: Callable[[Iterable[str]], str], *, filter_forward_references: bool=False, generated_formatter_safe: bool=False) -> Callable[[Iterable[str]], str]
def direct_base_models(model: DataModel, stand_ins: Mapping[int, Reference | None] | None=None) -> list[DataModel]
def field_imports(field: DataModelFieldBase) -> tuple[Import, ...]
def forget_model_memos(model: DataModel, *tables: MemoTable) -> None
def get_effective_fields(model: DataModel) -> tuple[DataModelFieldBase, ...]
def get_inherited_fields(models: list[DataModel]) -> dict[str, DataModelFieldBase]
def get_module_name(name: str, file_path: Path | None, *, treat_dot_as_module: bool | None) -> str
def get_module_path(name: str, file_path: Path | None, *, treat_dot_as_module: bool | None) -> list[str]
def get_most_of_parent(value: Any, type_: type[T] | None=None) -> T | None
    # identity datamodel_code_generator._internal_utils.get_most_of_parent
def get_resolve_reference_action_capabilities(action: object) -> ResolveReferenceActionCapabilities
@lru_cache
def get_template(template_file_path: Path) -> Template
def host_identifiers(source: str) -> HostIdentifiers | None
    # identity datamodel_code_generator._target_unicode.host_identifiers
def host_parsable(source: str) -> tuple[str, Callable[[str], str]]
    # identity datamodel_code_generator._target_unicode.host_parsable
def inherited_root_field(model: DataModel) -> DataModelFieldBase
def linearize_data_models(models: list[DataModel], stand_ins: Mapping[int, Reference | None] | None=None) -> list[DataModel]
def live_render_plan(field: DataModelFieldBase) -> FieldRenderPlan
@contextmanager
def ordering_constructor_fields(*, before_nullability: bool=False, construction_defaults: bool=False) -> Generator[None, None, None]
def overrides_builtin_templates(directory: Path) -> bool
def python_base_classes(model: DataModel) -> list[BaseClassDataType] | None
def remember_nested_factory_order_before_nullability(model: DataModel) -> None
def sanitize_module_name(name: str, *, treat_dot_as_module: bool | None) -> str
def set_item_models_keeping_builtin_hash(models: Sequence[DataModel], field_value_hashes: Callable[[DataModelFieldBase], bool]) -> set[ModelKey]
def sort_data_models_for_mro(models: list[DataModel], stand_ins: Mapping[int, Reference | None] | None=None) -> list[DataModel]

[datamodel_code_generator.model.dataclass]
class DataClass(_DataclassReuseMixin, DataModel)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'dataclass.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_DATACLASS,)
    RESOLVES_STRING_ANNOTATIONS_FROM_MODULE: ClassVar[bool] = True
    FIELD_DEFAULT_CLASSIFIER = staticmethod(get_field_default_info)
    FIELD_PARTICIPATES_IN_CONSTRUCTOR = staticmethod(field_participates_in_constructor)
    FIELD_CONSTRUCTION_ORDER_KEY = staticmethod(_construction_order_key)
    SUPPORTS_TREE_SCOPE_REUSE_MODEL_INHERITANCE: ClassVar[bool] = True
    USES_DATACLASS_ARGUMENTS: ClassVar[bool] = True
    SUPPORTS_REQUIRED_INHERITED_FIELD_ASSIGNMENT: ClassVar[bool] = True
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = True
    SUPPORTS_INHERITED_DISCRIMINATOR_ENUM: ClassVar[bool] = True
    SUPPORTS_KW_ONLY: ClassVar[bool] = True
    HIDING_FIELD_RESOLUTION: ClassVar[Literal['field', 'type'] | None] = 'type'
    @override
    def field_name_hides_types(self, field: DataModelFieldBase) -> bool
    @override
    def unbind_fields(self, names: Collection[str | None]) -> bool
    @override
    def resolves_hidden_types_from_strings(self) -> bool
    @classmethod
    @override
    def prepare_required_inherited_field(cls, field: DataModelFieldBase, inherited_field: DataModelFieldBase, *, explicit_extras: Collection[str]=()) -> None
    @classmethod
    @override
    def restore_required_inherited_field_state(cls, field: DataModelFieldBase) -> bool
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, frozen: bool=False, treat_dot_as_module: bool | None=None, dataclass_arguments: DataclassArguments | None=None) -> None
class DataModelField(_FieldCallWriter, DataModelFieldBase)
    constraints: Optional[Constraints] = None
    @override
    def process_const(self) -> None
    @property
    @override
    def field(self) -> str | None
class DataTypeManager(_DataTypeManager)
    def __init__(self, python_version: PythonVersion=PythonVersionMin, use_standard_collections: bool=False, use_generic_container_types: bool=False, strict_types: Sequence[StrictTypes] | None=None, use_non_positive_negative_number_constrained_types: bool=False, use_decimal_for_multiple_of: bool=False, use_union_operator: bool=False, use_pendulum: bool=False, use_standard_primitive_types: bool=False, use_object_type: bool=False, target_datetime_class: DatetimeClassType=DatetimeClassType.Datetime, target_date_class: DateClassType | None=None, treat_dot_as_module: bool | None=None, use_serialize_as_any: bool=False) -> None
def field_participates_in_constructor(field: DataModelFieldBase) -> bool
def get_field_default_info(field: DataModelFieldBase) -> tuple[bool, bool]
def has_field_assignment(field: DataModelFieldBase) -> bool

[datamodel_code_generator.model.enum]
class Enum(DataModel)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'Enum.jinja2'
    BASE_CLASS: ClassVar[str] = 'enum.Enum'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_ENUM,)
    SUPPORTS_GENERIC_BASE_CLASS: ClassVar[bool] = False
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, type_: Types | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
    @classmethod
    def get_data_type(cls, types: Types, **kwargs: Any) -> DataType
    @property
    @override
    def holds_null(self) -> bool
    @property
    @override
    def form(self) -> ModelForm
    @property
    @override
    def value_base(self) -> str | None
    def get_member(self, field: DataModelFieldBase) -> Member
    def find_member(self, value: Any, *, coerce_strings: bool=False) -> Member | None
    @override
    def invalidate_render_caches(self) -> None
    @property
    @override
    def imports(self) -> tuple[Import, ...]
    self.base_classes
@record
class EnumMemberValue(_StructuredEnumMemberValue)
    value: str
    @override
    def __str__(self) -> str
    @override
    def __repr__(self) -> str
EnumValueBaseRow: TypeAlias = Literal['value-base', 'legacy-merged-enum-specialized-only']
class IntEnum(Enum)
    BASE_CLASS: ClassVar[str] = 'enum.IntEnum'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_INT_ENUM,)
class Member
    def __init__(self, enum: Enum, field: DataModelFieldBase) -> None
    @override
    def __repr__(self) -> str
    @property
    def value(self) -> Any
    self.enum
    self.field
    self.alias
NULL_ENUM_MEMBER_VALUE = _NullEnumMemberValue()
SPECIALIZED_ENUM_TYPE_MATCH: dict[Types, type[Enum]] = {Types.int32: IntEnum, Types.int64: IntEnum, Types.integer: IntEnum, Types.string: StrEnum}
SUBCLASS_BASE_CLASSES: dict[Types, str] = {Types.int32: _INT, Types.int64: _INT, Types.integer: _INT, Types.float: _FLOAT, Types.double: _FLOAT, Types.number: _FLOAT, Types.byte: _BYTES, Types.string: _STR}
    uses _INT: str = 'int'
    uses _FLOAT: str = 'float'
    uses _BYTES: str = 'bytes'
    uses _STR: str = 'str'
class StrEnum(Enum)
    BASE_CLASS: ClassVar[str] = 'enum.StrEnum'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_STR_ENUM,)
def enum_class_base(enum_class: type[Enum]) -> EnumBase
def enum_value_base(enum_class: type[Enum], bases: Iterable[DataType]=(), /, *, row: EnumValueBaseRow='value-base') -> str | None
escape_characters = str.maketrans({'\x00': '\\x00', '\\': '\\\\', **QUOTE_AND_CONTROL_ESCAPES, **{chr(code): f"\\u{code:04x}" for code in _SURROGATES}})
    uses QUOTE_AND_CONTROL_ESCAPES = {"'": "\\'", **CONTROL_ESCAPES}
    uses _SURROGATES: Final = range(55296, 57344)
    uses CONTROL_ESCAPES = {'\x08': '\\b', '\x0c': '\\f', '\n': '\\n', '\r': '\\r', '\t': '\\t'}
def get_raw_enum_member_value(default: Any) -> Any

[datamodel_code_generator.model.field_name]
class MsgspecFieldNameResolver(FieldNameResolver)
    # identity datamodel_code_generator.reference.MsgspecFieldNameResolver
    FIELD_ASSIGNMENT_HELPER = 'field'
PYDANTIC_BASE_MODEL_ATTRIBUTES: Final = frozenset(<set of 118>)
class PydanticFieldNameResolver(FieldNameResolver)
    # identity datamodel_code_generator.reference.PydanticFieldNameResolver
    @override
    def get_valid_name(self, name: str, excludes: set[str] | None=None, ignore_snake_case_field: bool=False, upper_camel: bool=False) -> str

[datamodel_code_generator.model.imports]
IMPORT_CLASSVAR = Import.from_full_path('typing.ClassVar')
IMPORT_DATACLASS = Import.from_full_path('dataclasses.dataclass')
IMPORT_FIELD = Import.from_full_path('dataclasses.field')
IMPORT_MSGSPEC_CONVERT = Import.from_full_path('msgspec.convert')
IMPORT_MSGSPEC_FIELD = Import.from_full_path('msgspec.field')
IMPORT_MSGSPEC_META = Import.from_full_path('msgspec.Meta')
IMPORT_MSGSPEC_STRUCT = Import.from_full_path('msgspec.Struct')
IMPORT_MSGSPEC_UNSET = Import.from_full_path('msgspec.UNSET')
IMPORT_MSGSPEC_UNSETTYPE = Import.from_full_path('msgspec.UnsetType')
IMPORT_NOT_REQUIRED = Import.from_full_path(form_path('python.typed_dict_not_required'))
IMPORT_NOT_REQUIRED_BACKPORT = Import.from_full_path(backport_path('python.typed_dict_not_required'))
IMPORT_READ_ONLY = Import.from_full_path(form_path('python.typed_dict_read_only'))
IMPORT_READ_ONLY_BACKPORT = Import.from_full_path(backport_path('python.typed_dict_read_only'))
IMPORT_REQUIRED = Import.from_full_path(form_path('python.typed_dict_required'))
IMPORT_REQUIRED_BACKPORT = Import.from_full_path(backport_path('python.typed_dict_required'))
IMPORT_TYPED_DICT = Import.from_full_path(form_path('python.typed_dict_closed'))
IMPORT_TYPED_DICT_BACKPORT = Import.from_full_path(backport_path('python.typed_dict_closed'))

[datamodel_code_generator.model.msgspec]
class Constraints(_Constraints)
@import_extender
class DataModelField(_FieldCallWriter, DataModelFieldBase)
    VALIDATES_STRUCTURED_DEFAULTS: ClassVar[bool] = True
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses _ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('_ANNOTATED_CONSTRAINTS_CONTEXT')
    constraints: Optional[Constraints] = None
    @override
    def process_const(self) -> None
    @property
    @override
    def field(self) -> str | None
    @property
    @override
    def type_hint(self) -> str
    @property
    @override
    def fall_back_to_nullable(self) -> bool
    @override
    def unconstrain_union_members(self, options: ConstraintOptions | None=None) -> bool
    @override
    def inherit_unconstrained_union_members(self, source: DataModelFieldBase) -> None
    @property
    @override
    def dropped_constraints_warning(self) -> str | None
    @property
    @override
    def annotated(self) -> str | None
    @property
    @override
    def needs_annotated_import(self) -> bool
DataModelFieldBaseT = TypeVar('DataModelFieldBaseT', bound=DataModelFieldBase)
class DataTypeManager(_DataTypeManager)
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses _ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('_ANNOTATED_CONSTRAINTS_CONTEXT')
    CONSTRAINT_KEYWORDS: ClassVar[Mapping[str, frozenset[str]]] = _applicability.MSGSPEC_OUTPUT.type_keywords
    ANNOTATION_UNIONS_TAKE_CONSTRAINTS: ClassVar[bool] = _applicability.MSGSPEC_OUTPUT.annotation_unions_take
    FIXED_TUPLES_TAKE_LENGTH: ClassVar[bool] = _applicability.MSGSPEC_OUTPUT.fixed_tuples_take_length
    LITERALS_TAKE_CONSTRAINTS: ClassVar[bool] = _applicability.MSGSPEC_OUTPUT.literals_take
    REFUSED_LITERAL_TYPES: ClassVar[tuple[type, ...]] = _applicability.MSGSPEC_OUTPUT.refused_literal_types
    MAPPING_CLASS_PATHS: ClassVar[frozenset[str]] = _applicability.MSGSPEC_OUTPUT.mapping_classes
    REGEX_ENGINES: ClassVar[frozenset[str]] = _applicability.MSGSPEC_OUTPUT.regex_engines
    WRITES_UNTYPED_VALUE_TYPE: ClassVar[bool] = False
    @property
    @override
    def checks_map_key_patterns(self) -> bool
    @override
    def get_map_key_str_type(self, **kwargs: Any) -> DataType
class Struct(DataModel)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'msgspec.jinja2'
    RESOLVES_STRING_ANNOTATIONS_FROM_MODULE: ClassVar[bool] = True
    WRITES_QUOTED_NAMES_IN_TYPING_GENERICS: ClassVar[bool] = True
    BASE_CLASS: ClassVar[str] = 'msgspec.Struct'
    BASE_CLASS_NAME: ClassVar[str] = 'Struct'
    BASE_CLASS_ALIAS: ClassVar[str] = '_Struct'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = ()
    FIELD_ASSIGNMENT_CHECKER = staticmethod(has_field_assignment)
    FIELD_CONSTRUCTION_ORDER_KEY = staticmethod(_construction_order_key)
    FIELD_DEFAULT_CLASSIFIER = staticmethod(get_field_default_info)
    FIELD_NAME_MODEL_TYPE: ClassVar[ModelType] = ModelType.MSGSPEC
    FIELD_NAME_RESOLVER_CLASS: ClassVar[type[FieldNameResolver]] = MsgspecFieldNameResolver
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = True
    SUPPORTS_INHERITED_DISCRIMINATOR_ENUM: ClassVar[bool] = True
    SUPPORTS_KW_ONLY: ClassVar[bool] = True
    REQUIRES_MODEL_LEVEL_KW_ONLY: ClassVar[bool] = True
    SUPPORTS_BOOLEAN_LITERAL: ClassVar[bool] = False
    SUPPORTS_NULL_ENUM_MEMBER: ClassVar[bool] = False
    REQUIRES_TAGGED_UNION_DISCRIMINATOR: ClassVar[bool] = True
    REQUIRES_UNIQUE_FIELD_ALIASES: ClassVar[bool] = True
    HIDING_FIELD_RESOLUTION: ClassVar[Literal['field', 'type'] | None] = 'field'
    FLATTENS_CONFLICTING_BASE_LAYOUTS: ClassVar[bool] = True
    FIRST_BASE_CONFIGURES: ClassVar[bool] = True
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses _ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('_ANNOTATED_CONSTRAINTS_CONTEXT')
    REQUIRES_EXPLICIT_DEFERRED_ANNOTATIONS_FOR_FORWARD_REFS: ClassVar[bool] = True
    CONFIG_MAPPING: ClassVar[dict[tuple[str, Any], tuple[str, Any] | None]] = {('allow_mutation', False): ('frozen', True), ('extra_fields', 'forbid'): ('forbid_unknown_fields', True), ('extra_fields', 'allow'): None, ('extra_fields', 'ignore'): None, ('allow_extra_fields', True): None, ('allow_population_by_field_name', True): None, ('use_attribute_docstrings', True): None}
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
    @classmethod
    @override
    def render_module_code(cls, models: list[DataModel]) -> str
    @override
    def flatten_conflicting_base_layouts(self, view: BaseLayoutView, flatten: Callable[[DataModel], None]) -> None
    @override
    def adopt_base_options(self) -> None
    @override
    def flatten_base_layouts(self, adopt_field: Callable[[DataModelFieldBase, bool], DataModelFieldBase]) -> list[DataModelFieldBase]
    def add_base_class_kwarg(self, name: str, value: str) -> None
    @override
    def apply_discriminator_tag(self, field: DataModelFieldBase, field_name: str, value: Any) -> bool
    @override
    def opt_out_of_inherited_tag(self) -> None
    @property
    @override
    def discriminator_tag(self) -> tuple[Any, Any] | None
    @override
    def has_keyword_only_definition(self) -> bool
    @override
    def enable_model_keyword_only(self) -> None
    @classmethod
    @override
    def create_base_class_model(cls, config: dict[str, Any], reference: Reference, custom_template_dir: Path | None=None, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> Struct | None
UNSET = _UNSET()
def get_field_default_info(field: DataModelFieldBase) -> tuple[bool, bool]
def has_field_assignment(field: DataModelFieldBase) -> bool
def import_extender(cls: type[DataModelFieldBaseT]) -> type[DataModelFieldBaseT]

[datamodel_code_generator.model.output]
class OutputModelContext
    # identity datamodel_code_generator.parser._output_context.OutputModelContext
    __slots__ = ('_data_model_root_type', '_data_model_type', 'checks_constraints', 'decodes_mixed_enum_values', 'decodes_value_unions', 'layers_repeated_constraints', 'literal_holds_enum_members', 'requires_additional_properties_reference_classes', 'requires_tagged_union_discriminator', 'supports_annotated_constraints', 'supports_boolean_literals', 'supports_internal_annotated_constraints', 'writes_constrained_types', 'writes_discriminator_argument')
    def __init__(self, *, data_model_type: type[DataModel], data_model_root_type: type[DataModel], supports_annotated_constraints: bool, supports_internal_annotated_constraints: bool, supports_boolean_literals: bool, requires_tagged_union_discriminator: bool, requires_additional_properties_reference_classes: bool, decodes_mixed_enum_values: bool=True, writes_constrained_types: bool=False, decodes_value_unions: bool=True, literal_holds_enum_members: bool=True, layers_repeated_constraints: bool=True, checks_constraints: bool=False, writes_discriminator_argument: bool=False) -> None
    @classmethod
    def from_generation_types(cls, *, data_model_type: type[DataModel], data_model_root_type: type[DataModel], data_model_field_type: type[DataModelFieldBase], data_type_manager_type: type[DataTypeManager], configured_types_are_builtin: bool, use_annotated: bool) -> OutputModelContext
    def resolve_nested_constrained_model_type(self) -> type[DataModel]
    def store_additional_properties_value(self, extra_template_data: dict[str, Any], *, value: bool, use_backport: bool=False, target_python_version: PythonVersion | None=None) -> None
    def has_additional_properties_type(self, extra_template_data: dict[str, Any]) -> bool
    @staticmethod
    def additional_properties_type_source(extra_template_data: dict[str, Any]) -> _TypeHintSource | None
    def store_additional_properties_type(self, extra_template_data: dict[str, Any], type_hint: str, reference_classes: set[str] | None=None, *, imports: tuple[Import, ...]=(), use_backport: bool=False, target_python_version: PythonVersion | None=None) -> None
    def store_additional_properties_reference_classes(self, extra_template_data: dict[str, Any], reference_classes: set[str]) -> None
    self.supports_annotated_constraints
    self.supports_internal_annotated_constraints
    self.supports_boolean_literals
    self.requires_tagged_union_discriminator
    self.requires_additional_properties_reference_classes
    self.decodes_mixed_enum_values
    self.writes_constrained_types
    self.decodes_value_unions
    self.literal_holds_enum_members
    self.layers_repeated_constraints
    self.checks_constraints
    self.writes_discriminator_argument
def prepare_output_model_config(extra_template_data: defaultdict[str, dict[str, Any]], *, validators: Mapping[str, ModelValidators] | None, use_generic_base_class: bool, allow_population_by_field_name: bool, alias_generator: AliasGenerator | None, no_alias: bool, allow_extra_fields: bool, extra_fields: str | None, use_msgspec_forbid_unknown_fields: bool, enable_faux_immutability: bool, use_attribute_docstrings: bool, use_single_line_docstring: bool, target_pydantic_version: TargetPydanticVersion | None, schema_validator_base_class_name: str | None, generate_schema_validators: bool, pin_aliases_with_alias_generator: bool) -> dict[str, Any]

[datamodel_code_generator.model.pydantic_base]
class BaseModelBase(DataModel, ABC)
    REQUIRES_RUNTIME_IMPORTS_WITH_RUFF_CHECK: ClassVar[bool] = True
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, Any] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
    @cached_property
    @override
    def template_file_path(self) -> Path
ConstraintsBase = datamodel_code_generator.model.base.ConstraintsBase
class DataModelField(DataModelFieldBase)
    SUPPORTS_FIELD_CONSTRAINTS: ClassVar[bool] = True
    VALIDATES_STRUCTURED_DEFAULTS: ClassVar[bool] = True
    constraints: Optional[Constraints] = None
    @property
    def has_default_factory_in_field(self) -> bool
    @property
    @override
    def dropped_constraints_warning(self) -> str | None
    @property
    @override
    def method(self) -> str | None
    @property
    def validator(self) -> str | None
    @property
    @override
    def field(self) -> str | None
    @override
    def enable_structured_default_validation(self) -> bool
    @property
    @override
    def written_constraints(self) -> dict[str, Any]
    @override
    def __str__(self) -> str
    @property
    @override
    def is_class_var(self) -> bool
    @property
    @override
    def type_hint(self) -> str
    @property
    @override
    def annotated(self) -> str | None
    @property
    @override
    def imports(self) -> tuple[Import, ...]
Field = pydantic.Field
PYTHON_ENGINE_BUILDS_KEY: Final = 'python_engine_builds_patterns'
class PatternConstraints(Constraints)
    regex: Optional[str] = Field(None, alias='regex')
    pattern: Optional[str] = Field(None, alias='pattern')
UnionIntFloat = datamodel_code_generator.types.UnionIntFloat

[datamodel_code_generator.model.pydantic_v2]
submodules: base_model, dataclass, imports, root_model, root_model_type_alias, type_alias, types, version
__all__ = [
    'BaseModel',
    'DataModelField',
    'DataTypeManager',
    'RootModel',
    'RootModelTypeAlias',
    'UnionMode',
    'dump_resolve_reference_action',
]
BaseModel = datamodel_code_generator.model.pydantic_v2.base_model.BaseModel
class ConfigDict(_BaseModel)
    model_config = _PydanticConfigDict(defer_build=True)
    extra: Optional[str] = None
    title: Optional[str] = None
    populate_by_name: Optional[bool] = None
    validate_by_name: Optional[bool] = None
    validate_by_alias: Optional[bool] = None
    alias_generator: Optional[str] = None
    allow_extra_fields: Optional[bool] = None
    extra_fields: Optional[str] = None
    from_attributes: Optional[bool] = None
    frozen: Optional[bool] = None
    arbitrary_types_allowed: Optional[bool] = None
    protected_namespaces: Optional[tuple[str, ...]] = None
    regex_engine: Optional[str] = None
    use_enum_values: Optional[bool] = None
    coerce_numbers_to_str: Optional[bool] = None
    use_attribute_docstrings: Optional[bool] = None
    json_schema_extra: Optional[Dict[str, Any]] = None
    @override
    def dict(self, **kwargs: Any) -> dict[str, Any]
DataModelField = datamodel_code_generator.model.pydantic_v2.base_model.DataModelField
DataTypeManager = datamodel_code_generator.model.pydantic_v2.types.DataTypeManager
RootModel = datamodel_code_generator.model.pydantic_v2.root_model.RootModel
RootModelTypeAlias = datamodel_code_generator.model.pydantic_v2.root_model_type_alias.RootModelTypeAlias
UnionMode = datamodel_code_generator.enums.UnionMode
declare_resolve_reference_action_capabilities = datamodel_code_generator.model.base.declare_resolve_reference_action_capabilities
def dump_resolve_reference_action(class_names: Iterable[str]) -> str

[datamodel_code_generator.model.pydantic_v2.base_model]
class BaseModel(_PydanticV2Model, BaseModelBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'pydantic_v2/BaseModel.jinja2'
    SCHEMA_RUNTIME_VALIDATION_HELPERS_TEMPLATE_FILE_PATH: ClassVar[str] = 'pydantic_v2/schema_runtime_validation_helpers.jinja2'
    SCHEMA_RUNTIME_VALIDATION_BASE_CLASS_NAME: ClassVar[str] = '_JsonSchemaRuntimeValidationBase'
    BASE_CLASS: ClassVar[str] = 'pydantic.BaseModel'
    BASE_CLASS_NAME: ClassVar[str] = 'BaseModel'
    BASE_CLASS_ALIAS: ClassVar[str] = '_BaseModel'
    SUPPORTS_TREE_SCOPE_REUSE_MODEL_INHERITANCE: ClassVar[bool] = True
    FIELD_NAME_MODEL_TYPE: ClassVar[ModelType] = ModelType.PYDANTIC
    FIELD_NAME_RESOLVER_CLASS: ClassVar[type[FieldNameResolver]] = PydanticFieldNameResolver
    EXPLICIT_ALIAS_CONFLICT_CHECKER = staticmethod(_explicit_alias_conflicts_with_pydantic)
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = True
    SUPPORTS_INHERITED_DISCRIMINATOR_ENUM: ClassVar[bool] = True
    SUPPORTS_FIELD_RENAMING: ClassVar[bool] = True
    SUPPORTS_FIELD_TYPE_RENAMING: ClassVar[bool] = True
    NORMALIZES_FIELD_NAMES: ClassVar[bool] = True
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    SUPPORTS_SCHEMA_RUNTIME_VALIDATION: ClassVar[bool] = True
    PLAIN_PATTERN_ROOT_TYPES = staticmethod(_get_plain_pattern_root_types)
    PLAIN_PATTERN_ROOT_CHECKER = staticmethod(_supports_plain_pattern_root_annotations)
    SCHEMA_RUNTIME_VALIDATION_ROOT_MODEL = staticmethod(_get_schema_runtime_validation_root_model)
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('ANNOTATED_CONSTRAINTS_CONTEXT')
    SUPPORTS_CONFIG_EXTRA: ClassVar[bool] = True
    SUPPORTS_ARBITRARY_TYPES_ALLOWED: ClassVar[bool] = True
    CUSTOM_TEMPLATE_ADAPTER = staticmethod(_adapt_legacy_pydantic_extra_template)
    TYPED_EXTRA_FIELD_NAME: ClassVar[str | None] = '__pydantic_extra__'
    TYPED_EXTRA_PLAIN_ANNOTATION_TEMPLATE_DATA_KEY: ClassVar[str | None] = 'pydantic_extra_plain_annotation'
    @classmethod
    @override
    def resolve_nested_constrained_model_type(cls, configured_root_model_type: type[DataModel]) -> type[DataModel]
    @classmethod
    @override
    def resolve_type_alias_model_type(cls, configured_root_model_type: type[DataModel], target_python_version: PythonVersion) -> type[DataModel]
    @classmethod
    @override
    def prepare_module_code(cls, models: list[DataModel]) -> None
    @classmethod
    @override
    def render_module_code(cls, models: list[DataModel]) -> str
    @classmethod
    @override
    def get_module_code_insertion_index(cls, models: list[DataModel]) -> int
    @override
    def invalidate_render_caches(self) -> None
    @override
    def refresh_field_config(self) -> None
    @classmethod
    @override
    def invalidate_module_code_cache(cls, models: list[DataModel]) -> None
    @classmethod
    @override
    def create_typed_extra_field(cls, *, field_model: type[DataModelFieldBase], data_type: DataType) -> DataModelFieldBase
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, Any] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
    @classmethod
    @override
    def resolve_module_import_conflicts(cls, models: Iterable[DataModel], model_imports: Mapping[DataModel, tuple[Import, ...]], imports: Imports) -> None
    @classmethod
    @override
    def create_base_class_model(cls, config: dict[str, Any], reference: Reference, custom_template_dir: Path | None=None, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> BaseModel | None
class Constraints(_Constraints)
    regex: Optional[str] = Field(None, alias='regex')
    pattern: Optional[str] = Field(None, alias='pattern')
    @model_validator(mode='before')
    def validate_min_max_items(cls, values: Any) -> dict[str, Any]
class DataModelField(_PydanticBaseDataModelField)
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('ANNOTATED_CONSTRAINTS_CONTEXT')
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = True
    PREPARE_PYTHON_PATTERNS = staticmethod(_prepare_python_patterns)
    PREPARE_TYPE_ALIAS_FIELD = staticmethod(_prepare_type_alias_field)
    NEEDS_MODEL_REGEX_ENGINE = staticmethod(_needs_model_regex_engine)
    WRITES_NO_CALL_WITHOUT_PLAN = staticmethod(_writes_no_call_without_plan)
    PATTERN_NEEDS_HOLDER_ENGINE = staticmethod(_pattern_needs_holder_engine)
    constraints: Optional[Constraints] = None
    can_have_extra_keys: ClassVar[bool] = False
    @property
    @override
    def dropped_constraints_warning(self) -> str | None
    @field_validator('extras')
    def validate_extras(cls, values: Any) -> dict[str, Any]
    @override
    def process_const(self) -> None
    @property
    def use_missing_sentinel_default(self) -> bool
    @property
    @override
    def represented_default(self) -> str
    @override
    def should_strip_default_none(self, *, keep_optional: bool=False) -> bool
    @property
    @override
    def fall_back_to_nullable(self) -> bool
    @property
    @override
    def type_hint(self) -> str
    @property
    def is_pydantic_extra_field(self) -> bool
    @property
    @override
    def requires_immediate_forward_reference_resolution(self) -> bool
    @property
    def use_pydantic_extra_plain_annotation(self) -> bool
    @property
    def use_pydantic_extra_annotations_dict(self) -> bool
    @property
    def use_pydantic_extra_annotation_assignment(self) -> bool
    @property
    def pydantic_extra_type_hint(self) -> str
    @property
    @override
    def imports(self) -> tuple[Import, ...]
    PARSER_CONSTRUCTOR = _construct_parser_simple_field  [set in datamodel_code_generator.model.pydantic_v2.base_model]
DataModelFieldV1 = datamodel_code_generator.model.pydantic_base.DataModelField
FIELDLESS_SITE_KEY: Final = '_fieldless_site'
def assigns_forward_reference_field(model: DataModel, field: DataModelFieldBase, positions: Mapping[str, int], index: int) -> bool
def has_lookaround_pattern(fields: list[DataModelFieldBase], *, follow_references: bool=False, include_compiled: bool=True, counts: Callable[[str], bool]=_counts_every_pattern, surrogates: bool=True) -> bool
def models_reaching_string_pattern_aliases(models: Iterable[DataModel]) -> set[int]

[datamodel_code_generator.model.pydantic_v2.dataclass]
Constraints = datamodel_code_generator.model.pydantic_v2.base_model.Constraints
class DataClass(_DataclassReuseMixin, _PydanticV2Model)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'pydantic_v2/dataclass.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_PYDANTIC_DATACLASS,)
    SUPPORTS_FIELD_RENAMING: ClassVar[bool] = True
    SUPPORTS_FIELD_TYPE_RENAMING: ClassVar[bool] = True
    FIELD_ASSIGNMENT_CHECKER = staticmethod(_has_pydantic_dataclass_field_assignment)
    FIELD_DEFAULT_CLASSIFIER = staticmethod(_get_pydantic_dataclass_field_default_info)
    FIELD_PARTICIPATES_IN_CONSTRUCTOR = staticmethod(_pydantic_dataclass_field_participates_in_constructor)
    FIELD_CONSTRUCTION_ORDER_KEY = staticmethod(_construction_order_key)
    USES_DATACLASS_ARGUMENTS: ClassVar[bool] = True
    SUPPORTS_REQUIRED_INHERITED_FIELD_ASSIGNMENT: ClassVar[bool] = True
    REQUIRES_EXPLICIT_INHERITED_FACTORY_OVERRIDE: ClassVar[bool] = True
    REQUIRED_ASSIGNMENT_COUNTS_AS_CONSTRUCTOR_DEFAULT: ClassVar[bool] = True
    REQUIRES_RUNTIME_IMPORTS_WITH_RUFF_CHECK: ClassVar[bool] = True
    SUPPORTS_DISCRIMINATOR: ClassVar[bool] = True
    SUPPORTS_KW_ONLY: ClassVar[bool] = True
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('ANNOTATED_CONSTRAINTS_CONTEXT')
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, frozen: bool=False, treat_dot_as_module: bool | None=None, dataclass_arguments: DataclassArguments | None=None) -> None
    @override
    def orders_required_assignments_before_defaults(self) -> bool
    @override
    def keeps_assignment_with_required_fields(self, field: DataModelFieldBase) -> bool
    @override
    def class_attribute_hides_named_type(self, field: DataModelFieldBase, *, assigned: bool, resolved_late: bool, as_string: bool) -> bool
    @override
    def assign_forward_reference_fields(self, positions: Mapping[str, int], index: int) -> bool
    @property
    @override
    def imports(self) -> tuple[Import, ...]
    @override
    def render(self, *, class_name: str | None=None) -> str
class DataModelField(DataModelFieldV2)
    WRITES_NO_CALL_WITHOUT_PLAN = None
    @property
    def requires_dataclass_field_assignment(self) -> bool
    @property
    def assigned_only_for_alias(self) -> bool
    @property
    def dataclass_field(self) -> str | None
    @property
    @override
    def annotated(self) -> str | None
    @property
    @override
    def field(self) -> str | None
    @property
    @override
    def imports(self) -> tuple[Import, ...]
class DataModelFieldBackport(DataModelField)
    def __init__(self, **data: Any) -> None
    @override
    def alias_form(self, *, inherits: bool=False) -> dict[str, Any]
has_field_assignment = datamodel_code_generator.model.dataclass.has_field_assignment

[datamodel_code_generator.model.pydantic_v2.imports]
IMPORT_ALIAS_CHOICES = Import.from_full_path('pydantic.AliasChoices')
IMPORT_ALIAS_GENERATOR_TO_CAMEL = Import.from_full_path('pydantic.alias_generators.to_camel')
IMPORT_ALIAS_GENERATOR_TO_PASCAL = Import.from_full_path('pydantic.alias_generators.to_pascal')
IMPORT_ALIAS_GENERATOR_TO_SNAKE = Import.from_full_path('pydantic.alias_generators.to_snake')
IMPORT_ANYURL = Import.from_full_path('pydantic.AnyUrl')
IMPORT_AWARE_DATETIME = Import.from_full_path('pydantic.AwareDatetime')
IMPORT_BASE64BYTES = Import.from_full_path('pydantic.Base64Bytes')
IMPORT_BASE64STR = Import.from_full_path('pydantic.Base64Str')
IMPORT_BASE64_ENCODER = Import.from_full_path('pydantic.Base64Encoder')
IMPORT_BASE_MODEL = Import.from_full_path('pydantic.BaseModel')
IMPORT_CONBYTES = Import.from_full_path('pydantic.conbytes')
IMPORT_CONDECIMAL = Import.from_full_path('pydantic.condecimal')
IMPORT_CONFIG_DICT = Import.from_full_path('pydantic.ConfigDict')
IMPORT_CONFLOAT = Import.from_full_path('pydantic.confloat')
IMPORT_CONINT = Import.from_full_path('pydantic.conint')
IMPORT_CONSTR = Import.from_full_path('pydantic.constr')
IMPORT_EMAIL_STR = Import.from_full_path('pydantic.EmailStr')
IMPORT_ENCODED_BYTES = Import.from_full_path('pydantic.EncodedBytes')
IMPORT_ENCODED_STR = Import.from_full_path('pydantic.EncodedStr')
IMPORT_FIELD = Import.from_full_path('pydantic.Field')
IMPORT_FIELD_VALIDATOR = Import.from_full_path('pydantic.field_validator')
IMPORT_FUTURE_DATE = Import.from_full_path('pydantic.FutureDate')
IMPORT_FUTURE_DATETIME = Import.from_full_path('pydantic.FutureDatetime')
IMPORT_IPV4ADDRESS = Import.from_full_path('ipaddress.IPv4Address')
IMPORT_IPV4NETWORKS = Import.from_full_path('ipaddress.IPv4Network')
IMPORT_IPV6ADDRESS = Import.from_full_path('ipaddress.IPv6Address')
IMPORT_IPV6NETWORKS = Import.from_full_path('ipaddress.IPv6Network')
IMPORT_MISSING = Import.from_full_path('pydantic.experimental.missing_sentinel.MISSING')
IMPORT_MODEL_VALIDATOR = Import.from_full_path('pydantic.model_validator')
IMPORT_MULTIPLE_OF = Import.from_full_path('annotated_types.MultipleOf')
IMPORT_NAIVE_DATETIME = Import.from_full_path('pydantic.NaiveDatetime')
IMPORT_NEGATIVE_FLOAT = Import.from_full_path('pydantic.NegativeFloat')
IMPORT_NEGATIVE_INT = Import.from_full_path('pydantic.NegativeInt')
IMPORT_NON_NEGATIVE_FLOAT = Import.from_full_path('pydantic.NonNegativeFloat')
IMPORT_NON_NEGATIVE_INT = Import.from_full_path('pydantic.NonNegativeInt')
IMPORT_NON_POSITIVE_FLOAT = Import.from_full_path('pydantic.NonPositiveFloat')
IMPORT_NON_POSITIVE_INT = Import.from_full_path('pydantic.NonPositiveInt')
IMPORT_PAST_DATE = Import.from_full_path('pydantic.PastDate')
IMPORT_PAST_DATETIME = Import.from_full_path('pydantic.PastDatetime')
IMPORT_POSITIVE_FLOAT = Import.from_full_path('pydantic.PositiveFloat')
IMPORT_POSITIVE_INT = Import.from_full_path('pydantic.PositiveInt')
IMPORT_PYDANTIC_DATACLASS = Import.from_full_path('pydantic.dataclasses.dataclass')
IMPORT_PYDANTIC_MISSING = Import.from_full_path(form_path('pydantic.missing_sentinel'))
IMPORT_ROOT_MODEL = Import.from_full_path('pydantic.RootModel')
IMPORT_SECRET_STR = Import.from_full_path('pydantic.SecretStr')
IMPORT_SERIALIZE_AS_ANY = Import.from_full_path('pydantic.SerializeAsAny')
IMPORT_STRICT = Import.from_full_path('pydantic.Strict')
IMPORT_STRICT_BOOL = Import.from_full_path('pydantic.StrictBool')
IMPORT_STRICT_BYTES = Import.from_full_path('pydantic.StrictBytes')
IMPORT_STRICT_FLOAT = Import.from_full_path('pydantic.StrictFloat')
IMPORT_STRICT_INT = Import.from_full_path('pydantic.StrictInt')
IMPORT_STRICT_STR = Import.from_full_path('pydantic.StrictStr')
IMPORT_STRING_CONSTRAINTS = Import.from_full_path('pydantic.StringConstraints')
IMPORT_TYPE_ADAPTER = Import.from_full_path('pydantic.TypeAdapter')
IMPORT_UUID1 = Import.from_full_path('pydantic.UUID1')
IMPORT_UUID3 = Import.from_full_path('pydantic.UUID3')
IMPORT_UUID4 = Import.from_full_path('pydantic.UUID4')
IMPORT_UUID5 = Import.from_full_path('pydantic.UUID5')
IMPORT_UUID6 = Import.from_full_path('pydantic.UUID6')
IMPORT_UUID7 = Import.from_full_path('pydantic.UUID7')
IMPORT_UUID8 = Import.from_full_path('pydantic.UUID8')
IMPORT_VALIDATION_INFO = Import.from_full_path('pydantic.ValidationInfo')
IMPORT_VALIDATOR_FUNCTION_WRAP_HANDLER = Import.from_full_path('pydantic.ValidatorFunctionWrapHandler')

[datamodel_code_generator.model.pydantic_v2.root_model]
IMPORT_ABC_ITERATOR = Import.from_full_path('collections.abc.Iterator')
IMPORT_ABC_SEQUENCE = Import.from_full_path('collections.abc.Sequence')
IMPORT_OVERLOAD = Import.from_full_path('typing.overload')
IMPORT_SUPPORTS_INDEX = Import.from_full_path('typing.SupportsIndex')
class RootModel(BaseModel)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'pydantic_v2/RootModel.jinja2'
    BASE_CLASS: ClassVar[str] = 'pydantic.RootModel'
    IS_ROOT_MODEL: ClassVar[bool] = True
    REQUIRES_FIELD_DEPENDENCY_ORDERING: ClassVar[bool] = True
    SUPPORTS_CONFIG_EXTRA: ClassVar[bool] = False
    SUPPORTS_ARBITRARY_TYPES_ALLOWED: ClassVar[bool] = False
    def add_literal_validation(self, values: list[object]) -> None
    def __init__(self, **kwargs: Any) -> None
    @property
    @override
    def has_length(self) -> bool
    def add_sequence_interface(self, item_type: str, slice_type: str) -> None
    @override
    def finalize_sequence_interface(self) -> None
    @override
    def render(self, *, class_name: str | None=None) -> str

[datamodel_code_generator.model.pydantic_v2.root_model_type_alias]
class RootModelTypeAlias(RootModel)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'pydantic_v2/RootModelTypeAlias.jinja2'
    IS_ALIAS: ClassVar[bool] = True
    ROOT_MODEL_CONSTRAINTS_FALLBACK = staticmethod(_root_model_constraints_fallback)
    DOCSTRING_INDENT: ClassVar[int] = 0
    FIELD_DOCSTRING_INDENT: ClassVar[int] = 0
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_ROOT_MODEL,)

[datamodel_code_generator.model.pydantic_v2.type_alias]
class TypeAlias(TypeAliasTypeBackport)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'PydanticV2TypeAlias.jinja2'
    @cached_property
    @override
    def template_file_path(self) -> Path
    @property
    @override
    def imports(self) -> tuple[Import, ...]

[datamodel_code_generator.model.pydantic_v2.types]
class AnnotatedConstraintDataType(_RuntimeAnnotatedDataType)
    constrained_base: str = 'str'
    @classmethod
    def of_call(cls, data_type: DataType, base: str) -> AnnotatedConstraintDataType
    @property
    @override
    def runtime_expression_imports(self) -> tuple[Import, ...]
    @property
    def annotated_base_type(self) -> str
    @property
    @override
    def base_type_hint(self) -> str
    @property
    @override
    def type_hint(self) -> str
class AnnotatedFormatDataType(AnnotatedConstraintDataType)
    @property
    @override
    def annotated_base_type(self) -> str
class AnnotatedStringDataType(PydanticV2DataType)
    annotated_string: ClassVar[bool] = True
    @property
    @override
    def type_hint(self) -> str
    @property
    @override
    def imports(self) -> Iterator[Import]
    @property
    @override
    def base_type_hint(self) -> str
class DataTypeManager(_DataTypeManagerBase)
    PATTERN_KEY: ClassVar[str] = 'pattern'
    HOSTNAME_REGEX: ClassVar[str] = HOSTNAME_REGEX
    WRITES_ENCODED_STR: ClassVar[bool] = True
    FORMAT_KEYWORD_FORMS: ClassVar[Mapping[str, _applicability.FormatKeywordForm]] = _applicability.PYDANTIC_OUTPUT.format_keyword_forms
    CONSTRAINED_TYPE_CONSUMED_KEYS: ClassVar[dict[str, tuple[str, ...]]] = dict(_applicability.PYDANTIC_OUTPUT.zero_bound_classes)
    CONSTRAINT_KEYWORDS: ClassVar[Mapping[str, frozenset[str]]] = _applicability.PYDANTIC_OUTPUT.type_keywords
    KNOWN_TYPE_IMPORTS: ClassVar[tuple[ModuleType, ...]] = (*_DataTypeManagerBase.KNOWN_TYPE_IMPORTS, pydantic_imports)
    NUMBER_VALUE_TYPES: ClassVar[frozenset[str]] = _applicability.PYDANTIC_OUTPUT.number_value_types
    TARGET_NUMBER_KEYWORDS: ClassVar[Mapping[str, tuple[PydanticConstruct, frozenset[str]]]] = _applicability.PYDANTIC_OUTPUT.target_number_keywords
    REGEX_ENGINES: ClassVar[frozenset[str]] = _applicability.PYDANTIC_OUTPUT.regex_engines
    DEFAULT_VALUE_DESCRIPTORS = MappingProxyType({_import_key(IMPORT_DECIMAL): DECIMAL_DEFAULT_VALUE_DESCRIPTOR, _import_key(IMPORT_CONDECIMAL): CONSTRAINED_DECIMAL_DEFAULT_VALUE_DESCRIPTOR})
    STRICT_DEFAULT_VALUE_RECIPES = MappingProxyType({**dict.fromkeys(map(_import_key, (IMPORT_STRICT_BYTES, IMPORT_CONBYTES)), DefaultValueRecipe.Bytes), **{key: _TEMPORAL_DEFAULT_VALUE_RECIPES[kind] for key, kind in _STRICT_DATE_TIME_KINDS.items()}})
        uses _TEMPORAL_DEFAULT_VALUE_RECIPES: Final = MappingProxyType({StrictTypes.date: DefaultValueRecipe.Date, StrictTypes.time: DefaultValueRecipe.Time, StrictTypes.datetime: DefaultValueRecipe.DateTime})
        uses _STRICT_DATE_TIME_KINDS: Final[Mapping[_ImportKey, StrictTypes]] = MappingProxyType({**dict.fromkeys(map(_import_key, (IMPORT_DATETIME, IMPORT_AWARE_DATETIME, IMPORT_NAIVE_DATETIME, IMPORT_PAST_DATETIME, IMPORT_FUTURE_DATETIME)), StrictTypes.datetime), **dict.fromkeys(map(_import_key, (IMPORT_DATE, IMPORT_PAST_DATE, IMPORT_FUTURE_DATE)), StrictTypes.date), _import_key(IMPORT_TIME): StrictTypes.time})
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = _ANNOTATED_CONSTRAINTS_CONTEXT
        uses ANNOTATED_CONSTRAINTS_CONTEXT: object = Sentinel('ANNOTATED_CONSTRAINTS_CONTEXT')
    def __init__(self, python_version: PythonVersion=PythonVersionMin, use_standard_collections: bool=False, use_generic_container_types: bool=False, strict_types: Sequence[StrictTypes] | None=None, use_non_positive_negative_number_constrained_types: bool=False, use_decimal_for_multiple_of: bool=False, use_union_operator: bool=False, use_pendulum: bool=False, use_standard_primitive_types: bool=False, use_object_type: bool=False, target_datetime_class: DatetimeClassType | None=None, target_date_class: DateClassType | None=None, treat_dot_as_module: bool | None=None, use_serialize_as_any: bool=False) -> None
    @property
    @override
    def checks_map_key_patterns(self) -> bool
    def type_map_factory(self, data_type: type[DataType], strict_types: Sequence[StrictTypes], pattern_key: str, target_datetime_class: DatetimeClassType | None=None, use_object_type: bool=False, target_date_class: DateClassType | None=None) -> dict[Types, DataType]
    def transform_kwargs(self, kwargs: dict[str, Any], filter_: Collection[str]) -> dict[str, Any]
    def get_data_int_type(self, types: Types, **kwargs: Any) -> DataType
    def get_data_float_type(self, types: Types, **kwargs: Any) -> DataType
    def get_data_decimal_type(self, types: Types, **kwargs: Any) -> DataType
    def get_data_str_type(self, types: Types, *, use_annotated: bool=False, target_pydantic_version: TargetPydanticVersion | None=None, **kwargs: Any) -> DataType
    def get_data_bytes_type(self, types: Types, **kwargs: Any) -> DataType
    @override
    def get_data_type(self, types: Types, *, field_constraints: bool=False, **kwargs: Any) -> DataType
    self.type_map
    self.strict_type_map
    self.kwargs_schema_to_model
    self.data_type
class EncodedBytesDataType(EncodedTextDataType)
    encoded_base: ClassVar[str] = 'bytes'
    encoder: ClassVar[str] = 'EncodedBytes'
class EncodedStrDataType(EncodedTextDataType)
    encoded_base: ClassVar[str] = 'str'
    encoder: ClassVar[str] = 'EncodedStr'
class EncodedTextDataType(_RuntimeAnnotatedDataType)
    encoded_base: ClassVar[str]
    encoder: ClassVar[str]
    @property
    @override
    def imports(self) -> Iterator[Import]
    @property
    @override
    def type_hint(self) -> str
    @property
    @override
    def base_type_hint(self) -> str
HOSTNAME_REGEX = datamodel_code_generator.types.DataTypeManager.HOSTNAME_REGEX
IMPORT_SECRET_STR = datamodel_code_generator.model.pydantic_v2.imports.IMPORT_SECRET_STR
class PydanticV2DataType(DataType)
    @property
    @override
    def imports(self) -> Iterator[Import]
class StrictAnnotatedDataType(_RuntimeAnnotatedDataType)
    @property
    @override
    def type_hint(self) -> str
    @property
    @override
    def base_type_hint(self) -> str
def annotated_constraint_metadata(base: str, keywords: Mapping[str, Any]) -> tuple[dict[str, Any], Any]
def annotated_constraints(data_type: DataType) -> DataType
bytes_kwargs: Final[tuple[str, ...]] = ('minLength', 'maxLength')
def constrained_base(data_type: DataType) -> str | None
escape_characters = str.maketrans(CONTROL_ESCAPES)
    uses CONTROL_ESCAPES = {'\x08': '\\b', '\x0c': '\\f', '\n': '\\n', '\r': '\\r', '\t': '\\t'}
number_kwargs: Final[tuple[str, ...]] = ('minimum', 'maximum', 'multipleOf', 'exclusiveMaximum', 'exclusiveMinimum')
def strict_type_map_factory(data_type: type[DataType]) -> dict[StrictTypes, DataType]
string_kwargs: Final[tuple[str, ...]] = (*STRING_KEYWORD_ORDER, 'minItems', 'maxItems')
    uses STRING_KEYWORD_ORDER: Final[tuple[str, ...]] = ('pattern', 'minLength', 'maxLength')
def type_map_factory(data_type: type[DataType], strict_types: Sequence[StrictTypes], pattern_key: str, use_pendulum: bool, use_object_type: bool=False) -> dict[Types, DataType]

[datamodel_code_generator.model.pydantic_v2.version]
def model_target_meets(model: DataModel | None, construct: PydanticConstruct) -> bool

[datamodel_code_generator.model.runtime_validation]
BoundKeyword: TypeAlias = Literal['minimum', 'exclusiveMinimum', 'maximum', 'exclusiveMaximum']
CONTAINS_EQUALITY_KEYWORDS: Final = frozenset({'const', 'enum'})
Condition: TypeAlias = tuple[tuple[InputNames, tuple[object, ...]], ...]
ConditionalBounds: TypeAlias = tuple[tuple[InputNames, BoundKeyword, int | float], ...]
@record(slots=False)
class ConditionalBoundsRule
    condition: Condition
    then_bounds: ConditionalBounds
    else_bounds: ConditionalBounds
@record(slots=False)
class ConditionalRequiredRule
    condition: Condition
    then_groups: RequiredGroups
    else_groups: RequiredGroups
@record
class ConstantTypesRule
    path: UniqueItemsPath
    values: tuple[bool | int | float, ...]
    booleans: tuple[bool, ...] = field(init=False)
    def __post_init__(self) -> None
ContainsMatcher: TypeAlias = tuple[tuple[str, object], ...]
@record
class ContainsRule
    path: UniqueItemsPath
    matcher: ContainsMatcher = field(compare=False)
    min_contains: int | None
    max_contains: int | None
    key: str = field(init=False)
    def __post_init__(self) -> None
    @property
    def uses_json_equality(self) -> bool
class IndependentDeclaredPatternPropertiesRule(PatternPropertiesRule)
class IndependentModelPatternPropertiesRule(PatternPropertiesRule)
InputNameGroups: TypeAlias = tuple[InputNames, ...]
InputNames: TypeAlias = tuple[str, ...]
@record(slots=False)
class PatternPropertiesRule
    declared_properties: tuple[str, ...]
    pattern_properties: tuple[tuple[str, DataType], ...]
    rejected_patterns: tuple[str, ...] = ()
    additional_property_type: DataType | None = None
    allow_unmatched: bool = True
    @property
    def data_types(self) -> tuple[DataType, ...]
    @property
    def python_regex_types(self) -> tuple[int, ...]
@record
class PropertyCountRule
    min_properties: int | None = None
    max_properties: int | None = None
RequiredGroup: TypeAlias = tuple[InputNames, ...]
RequiredGroups: TypeAlias = tuple[RequiredGroup, ...]
@record(slots=False)
class RequiredGroupsRule
    keyword: Literal['anyOf', 'oneOf', 'not']
    groups: RequiredGroups
@mutable_record
class SchemaRuntimeValidation
    pattern_properties: list[PatternPropertiesRule] = field(default_factory=list)
    required_groups: list[RequiredGroupsRule] = field(default_factory=list)
    conditional_required: list[ConditionalRequiredRule] = field(default_factory=list)
    property_count: PropertyCountRule | None = None
    unique_items: list[UniqueItemsRule] = field(default_factory=list)
    replace_unique_items: bool = False
    constant_types: list[ConstantTypesRule] = field(default_factory=list, init=False)
    replace_constant_types: bool = field(default=False, init=False)
    conditional_bounds: list[ConditionalBoundsRule] = field(default_factory=list, init=False)
    contains: list[ContainsRule] = field(default_factory=list, init=False)
    replace_contains: bool = field(default=False, init=False)
    def __bool__(self) -> bool
    @property
    def data_types(self) -> tuple[DataType, ...]
UNIQUE_ITEMS_ARRAY_TAIL_PATH_STEP: Final = '__json_schema_array_tail__'
UNIQUE_ITEMS_MAPPING_ADDITIONAL_VALUES_PATH_STEP: Final = '__json_schema_mapping_additional_values__'
UNIQUE_ITEMS_MAPPING_PATTERN_VALUES_PATH_STEP: Final = '__json_schema_mapping_pattern_values__'
UNIQUE_ITEMS_MAPPING_VALUES_PATH_STEP: Final = '__json_schema_mapping_values__'
UniqueItemsArrayTailPathStep: TypeAlias = tuple[Literal['__json_schema_array_tail__'], int]
UniqueItemsMappingAdditionalPathStep: TypeAlias = tuple[Literal['__json_schema_mapping_additional_values__'], InputNameGroups, tuple[str, ...]]
UniqueItemsMappingPatternPathStep: TypeAlias = tuple[Literal['__json_schema_mapping_pattern_values__'], str, None]
UniqueItemsPath: TypeAlias = tuple[UniqueItemsPathStep, ...]
UniqueItemsPathStep: TypeAlias = InputNames | UniqueItemsArrayTailPathStep | UniqueItemsMappingPatternPathStep | UniqueItemsMappingAdditionalPathStep | int | Literal['__json_schema_mapping_values__'] | None
@record
class UniqueItemsRule
    path: UniqueItemsPath
def alias_keeps_string_pattern(pattern: str, target: TargetPydanticVersion | None) -> bool
def alias_pattern_counter(alias: _AliasModel) -> Callable[[str], bool]
def conditional_value_uses_json_equality(value: object) -> bool
def unique_items_path_uses_regex(path: UniqueItemsPath) -> bool

[datamodel_code_generator.model.scalar]
DEFAULT_GRAPHQL_SCALAR_TYPE: str = 'str'
DEFAULT_GRAPHQL_SCALAR_TYPES: dict[str, str] = {'Boolean': _BOOLEAN, 'String': _STR, 'ID': _STR, 'Int': _INT, 'Float': _FLOAT}
    uses _BOOLEAN: str = 'bool'
    uses _INT: str = 'int'
    uses _FLOAT: str = 'float'
class DataTypeScalar(_DataTypeScalarBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'ScalarTypeAliasAnnotation.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPE_ALIAS,)
class DataTypeScalarTypeBackport(_DataTypeScalarBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'ScalarTypeAliasType.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPE_ALIAS_TYPE,)
class DataTypeScalarTypeStatement(_DataTypeScalarBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'ScalarTypeStatement.jinja2'

[datamodel_code_generator.model.type_alias]
class TypeAlias(TypeAliasBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'TypeAliasAnnotation.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPE_ALIAS,)
    IS_EVALUATED_ALIAS: ClassVar[bool] = True
class TypeAliasBase(DataModel)
    IS_ALIAS: ClassVar[bool] = True
    SUPPORTS_GENERIC_BASE_CLASS: ClassVar[bool] = False
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = True
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = None
    DOCSTRING_INDENT: ClassVar[int] = 0
    FIELD_DOCSTRING_INDENT: ClassVar[int] = 0
    @property
    @override
    def imports(self) -> tuple[Import, ...]
class TypeAliasTypeBackport(TypeAliasBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'TypeAliasType.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPE_ALIAS_TYPE,)
    DEFERS_RECURSIVE_TYPE_HINT: ClassVar[bool] = True
class TypeStatement(TypeAliasBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'TypeStatement.jinja2'

[datamodel_code_generator.model.typed_dict]
class DataModelField(DataModelFieldBase)
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_NOT_REQUIRED,)
    DEFAULT_REQUIRED_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_REQUIRED,)
    DEFAULT_READ_ONLY_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_READ_ONLY,)
    @override
    def process_const(self) -> None
    @property
    def key(self) -> str
    @property
    @override
    def type_hint(self) -> str
    @property
    @override
    def fall_back_to_nullable(self) -> bool
class DataModelFieldBackport(DataModelField)
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_NOT_REQUIRED_BACKPORT,)
    DEFAULT_REQUIRED_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_REQUIRED_BACKPORT,)
    DEFAULT_READ_ONLY_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_READ_ONLY_BACKPORT,)
class DataModelFieldReadOnlyBackport(DataModelField)
    DEFAULT_READ_ONLY_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_READ_ONLY_BACKPORT,)
class TypedDict(DataModel)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'TypedDict.jinja2'
    BASE_CLASS: ClassVar[str] = 'typing.TypedDict'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPED_DICT,)
    REQUIRES_ADDITIONAL_PROPERTIES_REFERENCE_CLASSES: ClassVar[bool] = True
    SUPPORTS_TYPED_DICT_TOTAL_FALSE: ClassVar[bool] = True
    WRITES_CLOSED_ADDITIONAL_PROPERTIES: ClassVar[bool] = True
    SUPPORTS_DESERIALIZED_DEFAULT_VALUES: ClassVar[bool] = False
    @classmethod
    @override
    def store_additional_properties_type(cls, extra_template_data: dict[str, Any], type_hint: str, reference_classes: set[str] | None=None, *, root_model_type: type[DataModel] | None=None, imports: tuple[Import, ...]=(), use_backport: bool=False) -> None
    @classmethod
    @override
    def resolve_module_import_conflicts(cls, models: Iterable[DataModel], model_imports: Mapping[DataModel, tuple[Import, ...]], imports: Imports) -> None
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
    @property
    @override
    def additional_properties_type(self) -> DataType | None
    @property
    @override
    def base_class(self) -> str
    @property
    @override
    def imports(self) -> tuple[Import, ...]
    @override
    def create_reuse_model(self, base_ref: Reference) -> TypedDict
    @property
    def is_functional_syntax(self) -> bool
    @property
    def all_fields(self) -> Iterator[DataModelFieldBase]
    @override
    def fields_evaluated_at_definition(self) -> list[DataModelFieldBase]
    @override
    def render(self, *, class_name: str | None=None) -> str
    self.use_total_false_for_typed_dict
escape_characters = datamodel_code_generator.model.enum.escape_characters

[datamodel_code_generator.model.types]
class DataTypeManager(_DataTypeManager)
    DEFAULT_VALUE_DESCRIPTORS = MappingProxyType({_import_key(IMPORT_DECIMAL): DECIMAL_DEFAULT_VALUE_DESCRIPTOR})
    def __init__(self, python_version: PythonVersion=PythonVersionMin, use_standard_collections: bool=False, use_generic_container_types: bool=False, strict_types: Sequence[StrictTypes] | None=None, use_non_positive_negative_number_constrained_types: bool=False, use_decimal_for_multiple_of: bool=False, use_union_operator: bool=False, use_pendulum: bool=False, use_standard_primitive_types: bool=False, use_object_type: bool=False, target_datetime_class: DatetimeClassType | None=None, target_date_class: DateClassType | None=None, treat_dot_as_module: bool | None=None, use_serialize_as_any: bool=False) -> None
    @override
    def get_data_type(self, types: Types, *, field_constraints: bool=False, **_: Any) -> DataType
    self.type_map
HOSTNAME_REGEX = datamodel_code_generator.types.DataTypeManager.HOSTNAME_REGEX
def standard_primitive_type_map_factory(data_type: type[DataType]) -> dict[Types, DataType]
def type_map_factory(data_type: type[DataType], *, use_object_type: bool=False) -> dict[Types, DataType]

[datamodel_code_generator.model.union]
class DataTypeUnion(_DataTypeUnionBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'UnionTypeAliasAnnotation.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPE_ALIAS, IMPORT_UNION)
class DataTypeUnionTypeBackport(_DataTypeUnionBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'UnionTypeAliasType.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_TYPE_ALIAS_TYPE, IMPORT_UNION)
class DataTypeUnionTypeStatement(_DataTypeUnionBase)
    TEMPLATE_FILE_PATH: ClassVar[str] = 'UnionTypeStatement.jinja2'
    DEFAULT_IMPORTS: ClassVar[tuple[Import, ...]] = (IMPORT_UNION,)

[datamodel_code_generator.model_metadata]
class GeneratedModelMetadata(TypedDict, closed=True)
    class_name: str
    name: str
    module: str
    source_ref: str
    source_path: list[str] | None
    title: str | None
    fields: list[ModelFieldMetadata]
JSON_SCHEMA_DRAFT_2020_12 = datamodel_code_generator.json_config.JSON_SCHEMA_DRAFT_2020_12
MODEL_METADATA_SCHEMA_RESOURCE = 'model_metadata.schema.json'
class ModelFieldMetadata(TypedDict, closed=True)
    name: str
    alias: str
    original_name: str | None
    type: str
    required: bool
class ModelMetadata(TypedDict, closed=True)
    version: Literal[1]
    models: list[GeneratedModelMetadata]
def dump_model_metadata(metadata: ModelMetadata | None) -> str
def model_metadata_json_schema() -> str
def model_metadata_payload(models: list[GeneratedModelMetadata]) -> ModelMetadata

[datamodel_code_generator.parser]
submodules: asyncapi, avro, base, generation, graphql, jsonschema, mcp, openapi, openapi_media, openapi_scope, protobuf, schema_version, xmlschema
__all__ = [
    'DefaultPutDict',
    'LiteralType',
]
class DefaultPutDict(UserDict[TK, TV])
    def get_or_put(self, key: TK, default: TV | None=None, default_factory: Callable[[TK], TV] | None=None) -> TV
class LiteralType(Enum)
    All = 'all'
    One = 'one'
    Off = 'none'

[datamodel_code_generator.parser.asyncapi]
ASYNCAPI_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/vnd.aai.asyncapi', 'application/vnd.aai.asyncapi+json', 'application/vnd.aai.asyncapi+yaml'})
AVRO_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/vnd.apache.avro', 'application/vnd.apache.avro+json', 'application/vnd.apache.avro+yaml'})
@record(slots=False)
class AsyncAPIContext
    raw_obj: dict[str, Any]
    root_parts: list[str]
    base_path: Path | None
    base_url: str | None
@snooper_to_methods()
class AsyncAPIParser(OpenAPIParser)
    def __init__(self, source: str | Path | list[Path] | ParseResult, *, config: AsyncAPIParserConfig | None=None, **options: Unpack[AsyncAPIParserConfigDict]) -> None
    @property
    def schema_features(self) -> OpenAPISchemaFeatures
    def parse_raw(self) -> None
@record(slots=False)
class AsyncAPIResolvedRef
    value: YamlValue
    path: list[str]
    context: AsyncAPIContext
@record(slots=False)
class AsyncAPISchema
    name: str
    raw_schema: YamlValue
    path: list[str]
    context: AsyncAPIContext
    parse_as_file: bool = False
    location: SchemaLocation | None = None
BINDING_SCHEMA_FIELD_NAMES: frozenset[str] = frozenset({'headers', 'query', 'key', 'groupId', 'clientId'})
INTERNAL_SCHEMA_CONTAINER = 'x-datamodel-code-generator-asyncapi-schemas'
JSON_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/schema', 'application/schema+json', 'application/schema+yaml'})
class MultiFormatSchemaObject(BaseModel)
    schema_: Any = Field(alias='schema')
    schema_format: StrictStr | None = Field(default=None, alias='schemaFormat')
OPENAPI_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/vnd.oai.openapi', 'application/vnd.oai.openapi+json', 'application/vnd.oai.openapi+yaml'})
OPERATION_NAMES: Final = ('publish', 'subscribe')
PROTOBUF_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/vnd.google.protobuf'})
RAML_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/raml+yaml'})
SCHEMA_FORMAT_KIND_BY_MEDIA_TYPE: dict[str, str] = {**dict.fromkeys(ASYNCAPI_SCHEMA_FORMATS, 'asyncapi'), **dict.fromkeys(JSON_SCHEMA_FORMATS, 'jsonschema'), **dict.fromkeys(OPENAPI_SCHEMA_FORMATS, 'openapi'), **dict.fromkeys(AVRO_SCHEMA_FORMATS, 'avro'), **dict.fromkeys(PROTOBUF_SCHEMA_FORMATS, 'protobuf'), **dict.fromkeys(XML_SCHEMA_FORMATS, 'xmlschema')}
XML_SCHEMA_FORMATS: frozenset[str] = frozenset({'application/xml', 'application/xml+schema', 'application/xml-schema', 'application/xsd+xml', 'text/xml'})
convert_avro_schema_data = datamodel_code_generator.parser.avro.convert_avro_schema_data  [lazy]
convert_protobuf_schema_data = datamodel_code_generator.parser.protobuf.convert_protobuf_schema_data  [lazy]
convert_xml_schema_data = datamodel_code_generator.parser.xmlschema.convert_xml_schema_data  [lazy]
def get_model_by_path(schema: dict[str, YamlValue] | list[YamlValue], keys: list[str] | list[int], *, refuse_scalar: bool=False) -> YamlValue
    # identity datamodel_code_generator.parser._schema_reading.get_model_by_path
def schema_format_kind(schema_format: str | None) -> str | None
def unescape_json_pointer_segment(segment: str) -> str
    # identity datamodel_code_generator.parser._schema_reading.unescape_json_pointer_segment

[datamodel_code_generator.parser.avro]
__all__ = [
    'AvroParser',
    'convert_avro_schema_data',
    'is_avro_schema_data',
]
class AvroParser(JsonSchemaParser)
    def __init__(self, source: str | Path | list[Path] | ParseResult, *, config: AvroParserConfig | None=None, **options: Unpack[AvroParserConfigDict]) -> None
    def parse_raw(self) -> None
BOOLEAN_SCHEMA: JsonSchema = {'type': 'boolean'}
BYTES_SCHEMA: JsonSchema = {'type': 'string', 'format': 'binary'}
COMPLEX_TYPES = lazy _COMPLEX_TYPES  [lazy]
    uses COMPLEX_TYPES = NAMED_TYPES | {'array', 'map'}
    uses NAMED_TYPES = frozenset({'record', 'enum', 'fixed'})
DURATION_BYTE_LENGTH = 12
JSON_SCHEMA_MARKER_KEYS = lazy _JSON_SCHEMA_MARKER_KEYS  [lazy]
    uses JSON_SCHEMA_MARKER_KEYS = frozenset({'$schema', '$defs', 'definitions', 'properties', 'allOf', 'anyOf', 'oneOf'})
JsonSchema = dict[str, Any]
MICROSECONDS_PER_DAY = 86400000000
NAME_PATTERN = re.compile('^[A-Za-z_][A-Za-z0-9_]*$')
NULL_SCHEMA: JsonSchema = null_schema()
PRIMITIVE_SCHEMAS: dict[str, JsonSchema] = {'null': NULL_SCHEMA, 'boolean': BOOLEAN_SCHEMA, 'int': {'type': 'integer', 'format': 'int32'}, 'long': {'type': 'integer', 'format': 'int64'}, 'float': {'type': 'number', 'format': 'float'}, 'double': {'type': 'number', 'format': 'double'}, 'bytes': BYTES_SCHEMA, 'string': STRING_SCHEMA}
STRING_SCHEMA: JsonSchema = {'type': 'string'}
def convert_avro_schema_data(data: YamlValue, *, placeholder_title: bool=True) -> dict[str, YamlValue]
def is_avro_schema_data(data: YamlValue) -> bool

[datamodel_code_generator.parser.base]
ALL_MODEL = datamodel_code_generator.model.base.ALL_MODEL
BaseClassDataType = datamodel_code_generator.model.base.BaseClassDataType
@runtime_checkable
class Child(Protocol)  [lazy]
    # identity datamodel_code_generator._internal_utils.Child
    @property
    def parent(self) -> Any | None
ConstraintsBase = datamodel_code_generator.model.base.ConstraintsBase
Counter = collections.Counter
DocumentRoles: TypeAlias = tuple[tuple[str, tuple[str, ...]], ...]
DroppedConstraintFields: TypeAlias = frozenset[tuple[ModulePath, str]]
    uses ModulePath: TypeAlias = tuple[str, ...]
@mutable_record(slots=True)
class DroppedConstraints
    warnings: DroppedConstraintFields = frozenset()
MAX_RECURSION_COUNT: int = sys.getrecursionlimit()
class ModuleContext(NamedTuple)
    module: ModulePath
    module_key: ModulePath
    models: list[DataModel]
    is_init: bool
    imports: Imports
    scoped_model_resolver: ModelResolver
NONE = datamodel_code_generator.types.NONE
class ParseConfig(NamedTuple)
    with_import: bool
    use_deferred_annotations: bool
    code_formatter: CodeFormatter | None
    module_split_mode: ModuleSplitMode | None
    all_exports_scope: AllExportsScope | None
    all_exports_collision_strategy: AllExportsCollisionStrategy | None
class Parser(ABC, Generic[ParserConfigT, SchemaFeaturesT])
    @property
    @abstractmethod
    def schema_features(self) -> SchemaFeaturesT
    @property
    def run_context(self) -> ParserRunContext
    def configure_run_context(self, *, diagnostic_source_path: Path | None=None, prefetched_source: tuple[Path, bytes] | None=None, formatter_cwd: Path | None=None, preserve_circular_root_models: bool=False, suppress_parse_warnings: bool=False, untyped_nullable_maps: bool=False, yielding_names: tuple[tuple[str, tuple[str, str | None]], ...]=(), document_roles: DocumentRoles=(), read_yaml_numbers_where_strings_required: bool=False, model_name_keys: ModelNameKeys | None=None, records_model_names: bool=False, final_name_keys: tuple[tuple[str, tuple[str, ...]], ...]=(), import_cycle_seeds: ImportCycleSeeds | None=None, planned_names: tuple[tuple[str, tuple[str, str | None]], ...]=()) -> None
    @property
    def document_roles_to_seed(self) -> DocumentRoles
    def __init__(self, source: str | Path | list[Path] | ParseResult | dict[str, YamlValue], *, config: ParserConfigT | None=None, **options: Unpack[ParserConfigDict]) -> None
    @property
    def field_name_model_type(self) -> ModelType
    def get_serialization_alias(self, original_field_name: str, field_name: str, class_name: str | None=None, *, output_names: tuple[str, ...]=()) -> str | None
    @property
    def iter_source(self) -> Iterator[Source]
    @classmethod
    def get_url_path_parts(cls, url: ParseResult) -> list[str]
    @property
    def data_type(self) -> type[DataType]
    @abstractmethod
    def parse_raw(self) -> None
    def record_dropped_constraints(self) -> None
    def dispose(self) -> None
    def parse(self, with_import: bool | None=True, format_: bool | None=True, settings_path: Path | None=None, disable_future_imports: bool=False, all_exports_scope: AllExportsScope | None=None, all_exports_collision_strategy: AllExportsCollisionStrategy | None=None, module_split_mode: ModuleSplitMode | None=None, collect_model_metadata: bool=False) -> str | dict[tuple[str, ...], Result]
    self.config
    self.keyword_only
    self.target_pydantic_version
    self.frozen_dataclasses
    self.data_type_manager
    self.data_model_type
    self.data_model_root_type
    self.pydantic_v2_root_model_type
    self.data_model_field_type
    self.imports
    self.use_exact_imports
    self.use_type_checking_imports
    self.class_decorators
    self.base_class
    self.base_class_map
    self.target_python_version
    self.builtin_names
    self.generation_store
    self.results
    self.model_metadata
    self.model_metadata_identities
    self.generated_class_names
    self.invalid_dotted_stdout_repair_modules
    self.generated_model_inventory
    self.source_data_fingerprint
    self.stdout_result_usable
    self.dump_resolve_reference_action
    self.validation
    self.field_constraints
    self.snake_case_field
    self.strip_default_none
    self.serialization_aliases
    self.apply_default_values_for_required_fields
    self.force_optional_for_required_fields
    self.use_schema_description
    self.use_field_description
    self.use_field_description_example
    self.use_inline_field_description
    self.use_single_line_docstring
    self.use_default_kwarg
    self.apply_field_options_to_every_field
    self.use_missing_sentinel
    self.deserialize_default_value_types
    self.checks_literal_values
    self.intersects_allof_keywords
    self.intersects_combined_schema_keywords
    self.reuse_model
    self.typed_nullable_maps
    self.yielding_names_to_assign
    self.planned_names_to_assign
    self.final_name_keys_to_assign
    self.import_cycle_seeds_to_apply
    self.fails_to_import
    self.hidden_class_refusal
    self.typed_nullable_map_reference_ids
    self.typed_map_values_may_move_models
    self.model_placement
    self.reuse_scope
    self.shared_module_name
    self.encoding
    self.enum_field_as_literal
    self.enum_field_as_literal_map
    self.open_enums
    self.open_enum_base_class_map
    self.ignore_enum_constraints
    self.set_default_enum_member
    self.use_subclass_enum
    self.use_specialized_enum
    self.strict_nullable
    self.omit_redundant_reference_null
    self.merge_msgspec_str_like_union_members
    self.keep_reference_null_on_merged_models
    self.use_generic_container_types
    self.use_union_operator
    self.enable_faux_immutability
    self.custom_class_name_generator
    self.repair_invalid_dotted_stdout
    self.forced_invalid_dotted_stdout_repair_modules
    self.field_extra_keys
    self.field_extra_keys_without_x_prefix
    self.model_extra_keys
    self.model_extra_keys_without_x_prefix
    self.field_include_all_keys
    self.remote_text_cache
    self.current_source_path
    self.use_title_as_name
    self.use_tag_as_union_variant_name
    self.infer_union_variant_names
    self.use_operation_id_as_name
    self.use_unique_items_as_set
    self.use_unique_items_as_set_by_value
    self.use_tuple_for_fixed_items
    self.use_tuple_for_closed_arrays
    self.use_tuple_for_fixed_length_arrays
    self.use_total_false_for_typed_dict
    self.use_closed_typed_dict
    self.allof_merge_mode
    self.allof_class_hierarchy
    self.dataclass_arguments
    self.base_path
    self.source
    self.custom_template_dir
    self.extra_template_data
    self.validators
    self.generate_schema_validators
    self.check_pattern_maps_strictly
    self.use_generic_base_class
    self.keep_bases_beside_generic_base_class
    self.generic_base_class_config
    self.model_resolver
    self.class_name
    self.allow_leading_underscore_class_name
    self.wrap_string_literal
    self.untrusted_input
    self.allow_remote_refs
    self.strict_refs
    self.allow_private_network
    self.http_backend
    self.http_headers
    self.http_local_ref_path
    self.http_query_parameters
    self.http_ignore_tls
    self.http_timeout
    self.use_annotated
    self.use_serialize_as_any
    self.use_non_positive_negative_number_constrained_types
    self.use_double_quotes
    self.allow_responses_without_content
    self.collapse_root_models
    self.collapse_root_models_name_strategy
    self.collapse_shared_parent_wrappers
    self.keep_constrained_root_models_in_every_container
    self.keep_enum_literal_aliases
    self.keep_reference_null_on_collapsed_root_models
    self.keep_shared_members_on_collapsed_root_models
    self.collapse_constrained_root_models_as_annotated
    self.remove_unused_models_beside_type_overrides
    self.keep_self_referencing_array_items
    self.keep_defaults_of_inherited_required_fields
    self.omit_incomplete_model_defaults
    self.collapse_reuse_models
    self.skip_root_model
    self.use_root_model_sequence_interface
    self.use_type_alias
    self.use_plain_alias_for_recursive_models
    self.capitalise_enum_members
    self.keep_model_order
    self.order_constructor_fields_by_final_names
    self.order_constructor_fields_by_written_defaults
    self.use_one_literal_as_default
    self.use_enum_values_in_discriminator
    self.merge_shared_variant_tags
    self.use_unmapped_variant_tag_values
    self.read_mapping_keys_by_schema_tag_type
    self.use_root_types_for_mixed_union_map_keys
    self.rename_redeclared_fields_hiding_types
    self.rename_fields_hiding_types_from_type_checkers
    self.use_msgspec_tagged_unions
    self.tag_msgspec_by_payload_name
    self.use_msgspec_nullable_enum_alias
    self.use_msgspec_forbid_unknown_fields
    self.use_typed_nullable_map_values
    self.use_typed_map_values_beside_other_types
    self.use_single_dict_for_object_maps
    self.read_unevaluated_properties
    self.read_kubernetes_extensions
    self.read_yaml_1_1_numbers_as_text
    self.use_single_value_enum_as_const
    self.read_format_as_annotation
    self.read_uuid6_uuid7_uuid8_formats
    self.read_const_beside_enum
    self.known_third_party
    self.custom_formatter
    self.custom_formatters_kwargs
    self.treat_dot_as_module
    self.strict_dotted_module_names
    self.default_field_extras
    self.formatters
    self.builtin_format_line_length
    self.defer_formatting
    self.type_mappings
    self.type_overrides
    self.type_overrides_replace_whole_type
    self.use_x_python_type_as_written
    self.use_bytes_for_content_media_type
    self.use_bounds_for_float_const
    self.read_only_write_only_model_type
    self.dedupe_request_response_variants
    self.dedupe_numbered_request_response_variants
    self.use_frozen_field
    self.use_serialization_alias
    self.use_default_factory_for_optional_nested_models
    self.field_type_collision_strategy
ParserConfigT = TypeVar('ParserConfigT', bound='ParserConfig')
@record
class ParserRunContext
    diagnostic_source_path: Path | None = None
    prefetched_source: tuple[Path, bytes] | None = None
    formatter_cwd: Path | None = None
    preserve_circular_root_models: bool = False
    suppress_parse_warnings: bool = False
    untyped_nullable_maps: bool = False
    yielding_names: tuple[tuple[str, tuple[str, str | None]], ...] = ()
    document_roles: DocumentRoles = ()
    read_yaml_numbers_where_strings_required: bool = False
    model_name_keys: ModelNameKeys | None = None
    records_model_names: bool = False
    final_name_keys: tuple[tuple[str, tuple[str, ...]], ...] = ()
    import_cycle_seeds: ImportCycleSeeds = NO_IMPORT_CYCLE_SEEDS
        uses NO_IMPORT_CYCLE_SEEDS: Final = ImportCycleSeeds()
    planned_names: tuple[tuple[str, tuple[str, str | None]], ...] = ()
@final
class PydanticFloors
    # identity datamodel_code_generator.parser._passes._state.PydanticFloors
    __slots__ = ('_floors', '_refused_bytes_patterns', '_unmatched_type_override_keys')
    def __init__(self) -> None
    def record_unmatched_type_override_keys(self, parser: object, message: str) -> None
    def unmatched_type_override_keys_of(self, parser: object) -> str | None
    @staticmethod
    def report_unmatched_type_override_keys(message: str | None) -> None
    def record(self, parser: object, floor: PydanticFloor | None, refused_bytes_patterns: tuple[str, ...]) -> None
    def of(self, parser: object) -> PydanticFloor | None
    def refused_bytes_patterns_of(self, parser: object) -> tuple[str, ...]
REQUIREMENTS: Final[Mapping[Construct, Requirement]] = MappingProxyType({row.construct: row for row in _ROWS})
    uses _ROWS: Final[tuple[Requirement, ...]] = <tuple of 45>
ReferenceMapSet = dict[str, set[str]]
class Result(BaseModel)
    model_config = ConfigDict(defer_build=True)
    body: str
    future_imports: str = ''
    source: Optional[Path] = None
SPECIAL_PATH_FORMAT: Final = f"{SPECIAL_PATH_MARKER}{{}}{_SPECIAL_PATH_SUFFIX}"
    uses _SPECIAL_PATH_SUFFIX: Final = '-#-special-#'
class Source(BaseModel)
    model_config = ConfigDict(defer_build=True)
    path: Path
    text: str = ''
    raw_data: Any | None = None
    @classmethod
    def from_path(cls, path: Path, base_path: Path, encoding: str, *, data: bytes | None=None) -> Source
    @classmethod
    def from_cached_path(cls, path: Path, base_path: Path, encoding: str, *, keep_text: bool=False, data: bytes | None=None) -> Source
    @classmethod
    def from_dict(cls, data: dict[str, YamlValue]) -> Source
class StdoutBindingContext(NamedTuple)
    common_imports: Imports
    models_by_name: Mapping[str, list[tuple[ModulePath, DataModel]]]
    treat_dot_as_module: bool | None
T = TypeVar('T')  [lazy]
YamlValue = TypeAliasType('YamlValue', 'dict[str, YamlValue] | list[YamlValue] | str | int | float | bool | None')
def add_model_path_to_list(paths: list[str] | None, model: DataModel, /) -> list[str]
    # identity datamodel_code_generator.parser._passes._shared.add_model_path_to_list
build_union = datamodel_code_generator.types.build_union
c3_merge = datamodel_code_generator.model.base.c3_merge
c3_merge = datamodel_code_generator.model.base.c3_merge
c3_merge = datamodel_code_generator.model.base.c3_merge
cached_path_exists = datamodel_code_generator.cached_path_exists
dataclass_model = module datamodel_code_generator.model.dataclass  [lazy]
deepcopy = copy.deepcopy
@contextlib.contextmanager
def dropped_constraints_recorded() -> Generator[DroppedConstraints]
def dump_templates(templates: list[DataModel]) -> str
def enum_site_override_import(host: TypeOverrideHost, reference: Reference) -> Import | None
    # identity datamodel_code_generator.parser._passes._shared.enum_site_override_import
escape_characters = datamodel_code_generator.model.enum.escape_characters
def get_module_directory(module: tuple[str, ...]) -> tuple[str, ...]
    # identity datamodel_code_generator.parser._passes.structure.get_module_directory
get_most_of_parent = datamodel_code_generator.model.base.get_most_of_parent
def get_special_path(keyword: str, path: list[str]) -> list[str]
    # identity datamodel_code_generator.parser._passes._shared.get_special_path
modules = module datamodel_code_generator.parser._passes.modules
msgspec_model = module datamodel_code_generator.model.msgspec  [lazy]
def normalize_newlines(text: str) -> str
    # identity datamodel_code_generator._python_syntax.normalize_newlines
def overridden_declared_constraints(values: Mapping[str, Any], *, type_dependent: Mapping[str, Any], untaken: Mapping[str, Any]) -> dict[str, Any]
    # identity datamodel_code_generator._constraint_applicability.overridden_declared_constraints
def override_required_field(host: InheritedFieldHost, models: list[DataModel]) -> None
    # identity datamodel_code_generator.parser._passes._shared.override_required_field
def placeholder_identity(placeholder: DataModelFieldBase) -> FieldIdentity
    # identity datamodel_code_generator.parser._passes._shared.placeholder_identity
plans = module datamodel_code_generator.parser._passes.plans
@contextlib.contextmanager
def pydantic_floors_recorded() -> Generator[PydanticFloors]
    # identity datamodel_code_generator.parser._passes._state.pydantic_floors_recorded
render_prep = module datamodel_code_generator.parser._passes.render_prep
def resplit_overridden_constraints(values: Mapping[str, Any], *, type_dependent: Mapping[str, Any], declared: Mapping[str, Any], taken: frozenset[str], declared_taken: frozenset[str]) -> tuple[dict[str, Any], dict[str, Any]]
    # identity datamodel_code_generator._constraint_applicability.resplit_overridden_constraints
@contextlib.contextmanager
def settle_diagnostics_reported_once() -> Generator[None]
    # identity datamodel_code_generator.parser._passes._state.settle_diagnostics_reported_once
def sort_base_classes_for_mro(sorted_data_models: SortedDataModels, generation_store: GenerationStore | None=None) -> None
    # identity datamodel_code_generator.parser._passes.settle.sort_base_classes_for_mro
def sort_data_models(unsorted_data_models: list[DataModel], sorted_data_models: SortedDataModels | None=None, require_update_action_models: list[ModelKey] | None=None, recursion_count: int=MAX_RECURSION_COUNT, generation_index: GenerationIndex | None=None, *, pydantic_v2_root_model_type: type[DataModel] | None=None, runtime_validation_references: Mapping[ModelKey, frozenset[ModelKey]] | None=None, keyed: KeyedModels | None=None, legacy_request_response: bool=False) -> tuple[list[DataModel], SortedDataModels, list[ModelKey]]
    # identity datamodel_code_generator.parser._passes.settle.sort_data_models
split_module_name = datamodel_code_generator.reference.split_module_name
def stdout_fingerprint(rendered: str, imports: Iterable[_ImportLike]) -> Key
    # identity datamodel_code_generator.parser._model_shapes.stdout_fingerprint
def title_to_class_name(title: str) -> str
def to_hashable(item: Any) -> HashableComparable  [lazy]
    # identity datamodel_code_generator._internal_utils.to_hashable
union_members = datamodel_code_generator.types.union_members
def untaken_minimums(untaken: Iterable[str], taken_by_minimum: Iterable[tuple[str, frozenset[str]]]) -> dict[str, str]
    # identity datamodel_code_generator._constraint_applicability.untaken_minimums

[datamodel_code_generator.parser.generation]
BaseClassDataType = typing.Any
CacheOwners = typing.Any
DataModel = typing.Any
DataModelFieldBase = typing.Any
DataType = typing.Any
@record
class DataTypeFact
    id: DataTypeId
    data_type: DataType
    owner_model: ModelId
    owner_field_index: int | None
    role: DataTypeRole
    reference: Reference | None
DataTypeId = builtins.int
DataTypeOccurrence: TypeAlias = tuple[DataType, int | None, DataTypeRole]
DataTypeRole = Literal['field', 'base', 'nested', 'dict_key']
GENERATION_STORE_MUTATION_METHODS: frozenset[str] = frozenset(SITE_EFFECTS) | NO_SITE_EFFECT
@record
class GenerationBuildResult
    facts: GenerationFacts
    model_ids_by_object: dict[int, ModelId]
    next_model_id: int
    next_data_type_id: int
@final
@mutable_record(slots=True)
class GenerationFacts
    model_facts: dict[ModelId, ModelFact] = field(default_factory=dict)
    data_type_facts: dict[DataTypeId, DataTypeFact] = field(default_factory=dict)
    data_type_fact_by_object: dict[int, DataTypeFact] = field(default_factory=dict)
    base_owner_model_ids_by_object: dict[int, ModelId | list[ModelId]] = field(default_factory=dict)
    model_by_path: dict[str, ModelId] = field(default_factory=dict)
    model_by_ref_id: dict[ModelKey, ModelId] = field(default_factory=dict)
    data_types_by_model: dict[ModelId, tuple[DataTypeId, ...]] = field(default_factory=dict)
    sites_by_target: _SitesByTarget = field(default_factory=lambda: defaultdict(dict))
    base_sites_by_target: _SitesByTarget = field(default_factory=lambda: defaultdict(dict))
    shared_data_type_fact_ids: dict[int, list[DataTypeId]] = field(default_factory=dict)
    sites: dict[SiteKey, RefSite] = field(default_factory=dict)
    def parse_order(self, model_id: ModelId) -> int
    def order_key(self, data_type_id: DataTypeId) -> tuple[int, DataTypeId]
@final
class GenerationIndex
    def __init__(self, store: GenerationStore) -> None
    def data_type_facts_for_reference(self, reference: Reference) -> tuple[DataTypeFact, ...]
    def owner_of(self, fact: DataTypeFact) -> DataModel
    def models_inheriting(self, reference: Reference) -> list[DataModel]
    def has_data_type_references(self, reference: Reference) -> bool
    def has_data_type_references_other_than(self, reference: Reference, excluded_data_type: DataType) -> bool
    def reference_classes_for_model(self, model: DataModel) -> frozenset[str]
    def referenced_keys_for_model(self, model: DataModel, keyed: KeyedModels, *, all_dict_keys: bool=False) -> frozenset[ModelKey]
    def reference_graph(self, snapshot: GraphSnapshot, keyed: KeyedModels, *, all_dict_keys: bool=False, edges: Mapping[EdgeKind, Mapping[ModelKey, Iterable[ModelKey]]]=MappingProxyType({})) -> ReferenceGraph
    def owner_model_for_data_type(self, data_type: DataType) -> DataModel | None
    def inlined_holders_of(self, data_type: DataType) -> tuple[DataType, ...]
    def root_collapse_reference_usage(self, reference: Reference, *, excluded_model: DataModel, is_root_model: Callable[[DataModel], bool]) -> tuple[list[DataModel], list[DataTypeFact]]
class GenerationIndexBuilder
    def __init__(self, model_key: Callable[[Reference], ModelKey]=model_key_of, history: _SiteHistory | None=None) -> None
    def build(self, models: Iterable[DataModel], *, previous_model_ids_by_object: dict[int, ModelId], next_model_id: int) -> GenerationBuildResult
    def update(self, facts: GenerationFacts, models: Sequence[DataModel], *, appended_count: int, changed_model_ids: Iterable[ModelId], renamed_model_ids: Iterable[ModelId], model_ids_by_object: dict[int, ModelId], next_model_id: int, next_data_type_id: int) -> GenerationBuildResult
class GenerationStore
    def __init__(self) -> None
    @classmethod
    def create_with_results(cls) -> tuple[GenerationStore, list[DataModel]]
    @property
    def facts_version(self) -> int
    def current_facts(self) -> GenerationFacts
    def builder(self) -> GraphBuilder
    def enter_phase(self, phase: Phase) -> None
    @property
    def renames(self) -> Sequence[ModelRename]
    def seal_facts(self, modules: Iterable[tuple[tuple[str, ...], Iterable[DataModel]]], member_keywords: Callable[[DataTypeView, Callable[[ReferenceView], ModelView | None]], frozenset[str] | None], options: DecisionOptions, constrained_member: Callable[[DataTypeView, Mapping[str, object]], object | None]) -> FinalFacts
    @deprecated('Use GenerationStore.builder().register_model() instead.', category=None)
    def register_model(self, model: DataModel) -> None
    @deprecated('Use GenerationStore.builder().retire_model() instead.', category=None)
    def retire_model(self, model: DataModel) -> None
    @deprecated('Use GenerationStore.builder().replace_model() instead.', category=None)
    def replace_model(self, model: DataModel, replacement: DataModel) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_module_models() instead.', category=None)
    def set_module_models(models: list[DataModel], members: Iterable[DataModel]) -> None
    def model_key(self, reference: Reference) -> ModelKey
    @staticmethod
    @deprecated('Use GenerationStore.builder().record_values_as_written() instead.', category=None)
    def record_values_as_written(owner: DataModel | DataType, values: Sequence[Any]) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().record_dropped_multiple_of() instead.', category=None)
    def record_dropped_multiple_of(data_type: DataType, value: float) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().record_site_constraints() instead.', category=None)
    def record_site_constraints(data_type: DataType, constraints: Mapping[str, Any]) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().write_field_call_in_annotated() instead.', category=None)
    def write_field_call_in_annotated(field_: DataModelFieldBase) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().record_widened_values() instead.', category=None)
    def record_widened_values(data_type: DataType, values: Sequence[object]) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().restore_required_inherited_field() instead.', category=None)
    def restore_required_inherited_field(model: DataModel, field_: DataModelFieldBase) -> bool
    @staticmethod
    @deprecated('Use GenerationStore.builder().adopt_base_options() instead.', category=None)
    def adopt_base_options(model: DataModel) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().force_field_assignment() instead.', category=None)
    def force_field_assignment(field_: DataModelFieldBase) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().mark_forward_references() instead.', category=None)
    def mark_forward_references(model: DataModel) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().mark_serialized_as_any() instead.', category=None)
    def mark_serialized_as_any(model: DataModel, wrapped: bool) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().mark_target_null() instead.', category=None)
    def mark_target_null(data_type: DataType) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().clear_target_null() instead.', category=None)
    def clear_target_null(data_type: DataType) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().write_rendered_null() instead.', category=None)
    def write_rendered_null(data_type: DataType) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().drop_held_null() instead.', category=None)
    def drop_held_null(data_type: DataType) -> None
    @deprecated('Use GenerationStore.builder().note_changed_models() instead.', category=None)
    def note_changed_models(self, *models: object) -> None
    def refresh(self) -> None
    def refresh_now(self) -> None
    @deprecated('Use GenerationStore.builder().discard_derived_facts() instead.', category=None)
    def discard_derived_facts(self) -> None
    @deprecated('Use GenerationStore.builder().replace_data_type_ref() instead.', category=None)
    def replace_data_type_ref(self, data_type: DataType, new_reference: Reference | None) -> None
    @deprecated('Use GenerationStore.builder().detach_data_type_ref() instead.', category=None)
    def detach_data_type_ref(self, data_type: DataType) -> None
    @deprecated('Use GenerationStore.builder().update_model_reference() instead.', category=None)
    def update_model_reference(self, model: DataModel, *, new_path: str | None=None, new_file_path: Path | None=None) -> None
    @deprecated('Use GenerationStore.builder().rename_model() instead.', category=None)
    def rename_model(self, model: DataModel, *, class_name: str | None=None, reference_name: str | None=None, clear_duplicate_name: bool=False, new_path: str | None=None, new_file_path: Path | None=None, scheme: RenameScheme | None=None, schema_path: str | None=None) -> None
    @deprecated('Use GenerationStore.builder().replace_field_type() instead.', category=None)
    def replace_field_type(self, field_: DataModelFieldBase, new_data_type: DataType, *, refresh: Refresh='now') -> None
    @deprecated('Use GenerationStore.builder().swap_data_type() instead.', category=None)
    def swap_data_type(self, data_type: DataType, new_data_type: DataType, *, refresh: Refresh='now') -> None
    @deprecated('Use GenerationStore.builder().apply_const() instead.', category=None)
    def apply_const(self, field_: DataModelFieldBase, *, refresh: Refresh='now') -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().apply_literal_default() instead.', category=None)
    def apply_literal_default(field_: DataModelFieldBase, decision: LiteralDefault) -> None
    @deprecated('Use GenerationStore.builder().drop_union_member_constraints() instead.', category=None)
    def drop_union_member_constraints(self, field_: DataModelFieldBase, *, refresh: Refresh='now', options: ConstraintOptions | None=None) -> None
    @deprecated('Use GenerationStore.builder().use_assignment_for_forward_references() instead.', category=None)
    def use_assignment_for_forward_references(self, model: DataModel, positions: Mapping[str, int], index: int, *, refresh: Refresh='now') -> bool
    @staticmethod
    @deprecated('Use GenerationStore.builder().rename_field() instead.', category=None)
    def rename_field(field_: DataModelFieldBase, name: str, *, alias: str | None=None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_field_identity() instead.', category=None)
    def set_field_identity(field_: DataModelFieldBase, identity: FieldIdentity, *, inherits: bool | None=None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_field_default() instead.', category=None)
    def set_field_default(field_: DataModelFieldBase, default: Any) -> None
    @staticmethod
    def set_field_runtime_default(field_: DataModelFieldBase, default: object, runtime_expression_imports: tuple[Import, ...]) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().record_nullable_without_default() instead.', category=None)
    def record_nullable_without_default(field_: DataModelFieldBase, nullable: bool | None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().omit_field_default() instead.', category=None)
    def omit_field_default(field_: DataModelFieldBase) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().require_field() instead.', category=None)
    def require_field(field_: DataModelFieldBase, *, use_default_with_required: bool) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_field_constraints() instead.', category=None)
    def set_field_constraints(field_: DataModelFieldBase, constraints: Any, *, type_dependent: Mapping[str, Any] | None=None, union_siblings: Mapping[str, Any] | None=None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_field_extras() instead.', category=None)
    def set_field_extras(field_: DataModelFieldBase, extras: dict[str, Any]) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_field_extra() instead.', category=None)
    def set_field_extra(field_: DataModelFieldBase, key: str, value: Any) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().drop_field_discriminator() instead.', category=None)
    def drop_field_discriminator(field_: DataModelFieldBase) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_type_discriminator() instead.', category=None)
    def set_type_discriminator(data_type: DataType, discriminator: str | None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().drop_union_operator() instead.', category=None)
    def drop_union_operator(data_type: DataType) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().use_typing_generics() instead.', category=None)
    def use_typing_generics(data_type: DataType) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().override_type_import() instead.', category=None)
    def override_type_import(data_type: DataType, import_: Import) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().set_type_expressions() instead.', category=None)
    def set_type_expressions(data_type: DataType, *, type_: str | None=None, import_: Import | None=None, python_type: Any=None, kwargs: dict[str, Any] | None=None, runtime_expression_imports: tuple[Import, ...] | None=None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().name_reference() instead.', category=None)
    def name_reference(data_type: DataType, alias: str | None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().name_enum_member() instead.', category=None)
    def name_enum_member(field_: DataModelFieldBase, member: Member, alias: str | None) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().name_enum_member_literal_class() instead.', category=None)
    def name_enum_member_literal_class(data_type: DataType, enum_class: str) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().add_model_import() instead.', category=None)
    def add_model_import(model: DataModel, import_: Import) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().bind_builtin_names() instead.', category=None)
    def bind_builtin_names(model: DataModel, bindings: Mapping[str, str]) -> None
    @staticmethod
    @deprecated('Use GenerationStore.builder().replace_additional_properties_type() instead.', category=None)
    def replace_additional_properties_type(model: DataModel, data_type: DataType) -> None
    @deprecated('Use GenerationStore.builder().replace_nested_data_type() instead.', category=None)
    def replace_nested_data_type(self, parent_data_type: DataType, old_data_type: DataType, new_data_type: DataType) -> None
    @deprecated('Use GenerationStore.builder().inline_shared() instead.', category=None)
    def inline_shared(self, root_type: DataType, site: DataType) -> DataType
    @deprecated('Use GenerationStore.builder().set_nested_data_types() instead.', category=None)
    def set_nested_data_types(self, data_type: DataType, nested_data_types: Iterable[DataType]) -> None
    @deprecated('Use GenerationStore.builder().append_field() instead.', category=None)
    def append_field(self, model: DataModel, field_: DataModelFieldBase) -> None
    @deprecated('Use GenerationStore.builder().insert_field() instead.', category=None)
    def insert_field(self, model: DataModel, index: int, field_: DataModelFieldBase) -> None
    @deprecated('Use GenerationStore.builder().set_fields() instead.', category=None)
    def set_fields(self, model: DataModel, fields: Iterable[DataModelFieldBase]) -> None
    @deprecated('Use GenerationStore.builder().set_base_classes() instead.', category=None)
    def set_base_classes(self, model: DataModel, base_classes: Iterable[BaseClassDataType]) -> None
    @deprecated('Use GenerationStore.builder().reset_base_classes() instead.', category=None)
    def reset_base_classes(self, model: DataModel) -> None
    @deprecated('Use GenerationStore.builder().redirect_reference_users() instead.', category=None)
    def redirect_reference_users(self, old_reference: Reference, new_reference: Reference, *, merged: bool=False, keeps_named: bool=False) -> list[DataType]
    def has_users_in_other_modules(self, model: DataModel) -> bool
    @deprecated('Use GenerationStore.builder().redirect_model_reference_users() instead.', category=None)
    def redirect_model_reference_users(self, model: DataModel, models: list[DataModel], new_reference: Reference, *, keeps_named: bool=False) -> None
    @deprecated('Use GenerationStore.builder().collapse_root_data_type() instead.', category=None)
    def collapse_root_data_type(self, data_type: DataType, inner_reference: Reference) -> None
    @deprecated('Use GenerationStore.builder().detach_model_data_type_refs() instead.', category=None)
    def detach_model_data_type_refs(self, model: DataModel) -> None
    @deprecated('Use GenerationStore.builder().defer_refresh() instead.', category=None)
    @contextmanager
    def defer_refresh(self) -> Generator[None, None, None]
    def __iter__(self) -> Iterator[DataModel]
    self.models
    self.index
    self.phase
@final
class GraphBuilder
    __slots__ = ('_store',)
    def __init__(self, store: GenerationStore, token: _BuilderToken) -> None
    def add_model_import(self, model: DataModel, import_: Import) -> None
    def bind_builtin_names(self, model: DataModel, bindings: Mapping[str, str]) -> None
    def set_type_expressions(self, data_type: DataType, *, type_: str | None=None, import_: Import | None=None, python_type: Any=None, kwargs: dict[str, Any] | None=None, runtime_expression_imports: tuple[Import, ...] | None=None) -> None
    def append_field(self, model: DataModel, field_: DataModelFieldBase) -> None
    def apply_const(self, field_: DataModelFieldBase, *, refresh: Refresh='now') -> None
    def apply_literal_default(self, field_: DataModelFieldBase, decision: LiteralDefault) -> None
    def clear_target_null(self, data_type: DataType) -> None
    def collapse_root_data_type(self, data_type: DataType, inner_reference: Reference) -> None
    def defer_refresh(self) -> AbstractContextManager[None]
    def detach_data_type_ref(self, data_type: DataType) -> None
    def detach_model_data_type_refs(self, model: DataModel) -> None
    def discard_derived_facts(self) -> None
    def drop_field_discriminator(self, field_: DataModelFieldBase) -> None
    def drop_held_null(self, data_type: DataType) -> None
    def drop_union_member_constraints(self, field_: DataModelFieldBase, *, refresh: Refresh='now', options: ConstraintOptions | None=None) -> None
    def inline_shared(self, root_type: DataType, site: DataType) -> DataType
    def insert_field(self, model: DataModel, index: int, field_: DataModelFieldBase) -> None
    def adopt_base_options(self, model: DataModel) -> None
    def force_field_assignment(self, field_: DataModelFieldBase) -> None
    def mark_forward_references(self, model: DataModel) -> None
    def mark_serialized_as_any(self, model: DataModel, wrapped: bool) -> None
    def mark_target_null(self, data_type: DataType) -> None
    def note_changed_models(self, *models: object) -> None
    def drop_union_operator(self, data_type: DataType) -> None
    def use_typing_generics(self, data_type: DataType) -> None
    def override_type_import(self, data_type: DataType, import_: Import) -> None
    def name_reference(self, data_type: DataType, alias: str | None) -> None
    def name_enum_member(self, field_: DataModelFieldBase, member: Member, alias: str | None) -> None
    def name_enum_member_literal_class(self, data_type: DataType, enum_class: str) -> None
    def record_dropped_multiple_of(self, data_type: DataType, value: float) -> None
    def record_values_as_written(self, owner: DataModel | DataType, values: Sequence[Any]) -> None
    def record_site_constraints(self, data_type: DataType, constraints: Mapping[str, Any]) -> None
    def write_field_call_in_annotated(self, field_: DataModelFieldBase) -> None
    def record_widened_values(self, data_type: DataType, values: Sequence[object]) -> None
    def redirect_model_reference_users(self, model: DataModel, models: list[DataModel], new_reference: Reference, *, keeps_named: bool=False) -> None
    def redirect_reference_users(self, old_reference: Reference, new_reference: Reference, *, merged: bool=False, keeps_named: bool=False) -> list[DataType]
    def register_model(self, model: DataModel) -> None
    def rename_field(self, field_: DataModelFieldBase, name: str, *, alias: str | None=None) -> None
    def rename_model(self, model: DataModel, *, class_name: str | None=None, reference_name: str | None=None, clear_duplicate_name: bool=False, new_path: str | None=None, new_file_path: Path | None=None, scheme: RenameScheme | None=None, schema_path: str | None=None) -> None
    def replace_data_type_ref(self, data_type: DataType, new_reference: Reference | None) -> None
    def replace_additional_properties_type(self, model: DataModel, data_type: DataType) -> None
    def replace_field_type(self, field_: DataModelFieldBase, new_data_type: DataType, *, refresh: Refresh='now') -> None
    def replace_model(self, model: DataModel, replacement: DataModel) -> None
    def replace_nested_data_type(self, parent_data_type: DataType, old_data_type: DataType, new_data_type: DataType) -> None
    def require_field(self, field_: DataModelFieldBase, *, use_default_with_required: bool) -> None
    def reset_base_classes(self, model: DataModel) -> None
    def restore_required_inherited_field(self, model: DataModel, field_: DataModelFieldBase) -> bool
    def retire_model(self, model: DataModel) -> None
    def set_base_classes(self, model: DataModel, base_classes: Iterable[BaseClassDataType]) -> None
    def set_field_constraints(self, field_: DataModelFieldBase, constraints: Any, *, type_dependent: Mapping[str, Any] | None=None, union_siblings: Mapping[str, Any] | None=None) -> None
    def set_field_default(self, field_: DataModelFieldBase, default: Any) -> None
    def set_field_runtime_default(self, field_: DataModelFieldBase, default: object, runtime_expression_imports: tuple[Import, ...]) -> None
    def record_nullable_without_default(self, field_: DataModelFieldBase, nullable: bool | None) -> None
    def omit_field_default(self, field_: DataModelFieldBase) -> None
    def set_field_extra(self, field_: DataModelFieldBase, key: str, value: Any) -> None
    def set_field_extras(self, field_: DataModelFieldBase, extras: dict[str, Any]) -> None
    def set_field_identity(self, field_: DataModelFieldBase, identity: FieldIdentity, *, inherits: bool | None=None) -> None
    def set_fields(self, model: DataModel, fields: Iterable[DataModelFieldBase]) -> None
    def set_module_models(self, models: list[DataModel], members: Iterable[DataModel]) -> None
    def set_nested_data_types(self, data_type: DataType, nested_data_types: Iterable[DataType]) -> None
    def set_type_discriminator(self, data_type: DataType, discriminator: str | None) -> None
    def swap_data_type(self, data_type: DataType, new_data_type: DataType, *, refresh: Refresh='now') -> None
    def update_model_reference(self, model: DataModel, *, new_path: str | None=None, new_file_path: Path | None=None) -> None
    def use_assignment_for_forward_references(self, model: DataModel, positions: Mapping[str, int], index: int, *, refresh: Refresh='now') -> bool
    def write_rendered_null(self, data_type: DataType) -> None
Member = typing.Any
@record
class ModelFact
    id: ModelId
    parse_order: int
    model: DataModel
    reference: Reference
    path: str
    file_path: Path | None
    @property
    def name(self) -> str
    @property
    def class_name(self) -> str
ModelId = builtins.int
@final
@record
class ModelRename
    keys: tuple[ModelKey, ...]
    path: str
    class_name: str
    import_path: str
    new_class_name: str
    scheme: RenameScheme | None
    reference_name: str
NO_SITE_EFFECT: frozenset[str] = frozenset(<set of 47>)
OrderedSet: TypeAlias = dict[_OrderedSetItem, None]
    uses _OrderedSetItem = TypeVar('_OrderedSetItem')
OwnerModels = typing.Any
Reference = typing.Any
Refresh: TypeAlias = Literal['now', 'deferred']
RenameScheme: TypeAlias = Literal['plan', 'module', 'flattened-module', 'field-type', 'imported-name', 'internal-module', 'shared-module', 'collapsed-root']
SITE_EFFECTS: Mapping[str, ProvenanceHow] = MappingProxyType(<dict of 18>)
def model_occurrences(model: DataModel, owner: ModelKey, target_of: Callable[[Reference], ModelKey]) -> tuple[list[DataTypeOccurrence], list[tuple[int, SiteOccurrence]]]
def set_model_base_classes(model: DataModel, base_classes: Iterable[BaseClassDataType], generation_store: GenerationStore | None=None) -> None

[datamodel_code_generator.parser.graphql]
@snooper_to_methods()
class GraphQLParser(Parser['GraphQLParserConfig', 'JsonSchemaFeatures'])
    raw_obj: graphql.GraphQLSchema
    @cached_property
    @override
    def schema_features(self) -> JsonSchemaFeatures
    all_graphql_objects: dict[str, graphql.GraphQLNamedType]
    references: dict[str, Reference]
    support_graphql_types: dict[graphql.type.introspection.TypeKind, list[graphql.GraphQLNamedType]]
    parse_order: list[graphql.type.introspection.TypeKind] = [graphql.type.introspection.TypeKind.SCALAR, graphql.type.introspection.TypeKind.ENUM, graphql.type.introspection.TypeKind.INTERFACE, graphql.type.introspection.TypeKind.OBJECT, graphql.type.introspection.TypeKind.INPUT_OBJECT, graphql.type.introspection.TypeKind.UNION]
    def __init__(self, source: str | Path | ParseResult, *, config: GraphQLParserConfig | None=None, **options: Unpack[GraphQLParserConfigDict]) -> None
    def parse_scalar(self, scalar_graphql_object: graphql.GraphQLScalarType) -> None
    def should_parse_enum_as_literal(self, obj: graphql.GraphQLEnumType) -> bool
    def parse_enum(self, enum_object: graphql.GraphQLEnumType) -> None
    def parse_enum_as_str_type(self, enum_object: graphql.GraphQLEnumType) -> None
    def parse_enum_as_literal(self, enum_object: graphql.GraphQLEnumType) -> None
    def parse_enum_as_enum_class(self, enum_object: graphql.GraphQLEnumType) -> None
    def parse_field(self, field_name: str, alias: str | list[str] | None, field: graphql.GraphQLField | graphql.GraphQLInputField, original_field_name: str, class_name: str | None=None, *, output_names: tuple[str, ...]=()) -> DataModelFieldBase
    def parse_object_like(self, obj: graphql.GraphQLInterfaceType | graphql.GraphQLObjectType | graphql.GraphQLInputObjectType) -> None
    def parse_interface(self, interface_graphql_object: graphql.GraphQLInterfaceType) -> None
    def parse_object(self, graphql_object: graphql.GraphQLObjectType) -> None
    def parse_input_object(self, input_graphql_object: graphql.GraphQLInputObjectType) -> None
    def parse_union(self, union_object: graphql.GraphQLUnionType) -> None
    @override
    def parse_raw(self) -> None
    self.data_model_scalar_type
    self.data_model_union_type
    self.use_standard_collections
def build_graphql_schema(schema_str: str, *, source: str | None=None) -> graphql.GraphQLSchema
graphql_resolver_kind = graphql.type.introspection.TypeResolvers().kind  [try]
graphql_resolver_kind = graphql.type.introspection.TypeFields.kind  [except AttributeError]

[datamodel_code_generator.parser.jsonschema]
ALLOWED_DEFAULT_FACTORIES: frozenset[str] = frozenset({'dict', 'list', 'set'})
AliasGenerator = datamodel_code_generator.enums.AliasGenerator
AllOfClassHierarchy = datamodel_code_generator.enums.AllOfClassHierarchy
AllOfMergeMode = datamodel_code_generator.enums.AllOfMergeMode
class ArrayIndexOutOfRangeError(Error)
    # identity datamodel_code_generator._document_reader.ArrayIndexOutOfRangeError
BINARY_CONTENT_KEY = datamodel_code_generator.reference.BINARY_CONTENT_KEY
BaseModel = lazy _get_base_model_class()  [lazy]
    | from pydantic import BaseModel as _PydanticBaseModel
    | from pydantic import ConfigDict as _ConfigDict
    | class _BaseModelV2(_PydanticBaseModel)
    |     model_config = _ConfigDict(strict=False, defer_build=True)
    | return _BaseModelV2
ConfigDict = pydantic.ConfigDict
@final
@record
class ConvertedRefs
    # identity datamodel_code_generator.parser._schema_graph.ConvertedRefs
    mounted: Callable[[str], str]
    home: str | None
Counter = collections.Counter
DEFAULT_MODEL_EXTRA_KEYS: set[str] = {'contentEncoding', 'contentMediaType', 'contentSchema', 'externalDocs', 'xml'}
@final
@record
class DeclaredKinds
    # identity datamodel_code_generator._constraint_applicability.DeclaredKinds
    numbers: bool = False
    string: bool = False
    array: bool = False
    typed: bool = False
class Discriminator(BaseModel)
    # identity datamodel_code_generator.parser._schema_object.Discriminator
    propertyName: str
    mapping: Optional[dict[str, str]] = None
DocumentId = NewType('DocumentId', str)
EXCLUDE_FIELD_KEYS = set(JsonSchemaObject.get_fields()) - DEFAULT_FIELD_KEYS - EXCLUDE_FIELD_KEYS_IN_JSON_SCHEMA | {'$id', '$ref', '$recursiveRef', '$recursiveAnchor', '$dynamicRef', '$dynamicAnchor', 'self', _READ_AS_CONST_KEY, JsonSchemaObject.__extra_key__}
    uses _READ_AS_CONST_KEY = 'x-datamodel-code-generator-read-as-const'
    uses DEFAULT_FIELD_KEYS: set[str] = {'example', 'examples', 'description', 'discriminator', 'title', 'const', 'default_factory', 'deprecated', 'contentEncoding', 'contentMediaType', 'contentSchema', 'externalDocs', 'xml'}
EXCLUDE_FIELD_KEYS_IN_JSON_SCHEMA: set[str] = {'readOnly', 'writeOnly'}
ExitStack = contextlib.ExitStack
Field = pydantic.Field
@final
@record
class FieldTag
    # identity datamodel_code_generator.model._decisions.tag_value.FieldTag
    value: Any
    rule: FieldTagRule
Final = typing.Final
FloatConstraint = datamodel_code_generator.types.FloatConstraint
IMPORT_ANY = datamodel_code_generator.imports.IMPORT_ANY
INHERITED_SCHEMA_KEYWORDS: Final = schema_positions('modeled', 'child')
INTERSECTED_KEYWORDS: Final = _BOUNDS.union(('multipleOf', 'uniqueItems', 'required', 'pattern', 'type', 'enum', 'nullable'))
    uses _BOUNDS: Final = frozenset(_LOWER_BOUNDS + _UPPER_BOUNDS)
    uses _LOWER_BOUNDS: Final = ('minimum', 'exclusiveMinimum', 'minLength', 'minItems', 'minProperties')
    uses _UPPER_BOUNDS: Final = ('maximum', 'exclusiveMaximum', 'maxLength', 'maxItems', 'maxProperties')
Import = datamodel_code_generator.imports.Import
Imports = datamodel_code_generator.imports.Imports
IndependentDeclaredPatternPropertiesRule = datamodel_code_generator.model.runtime_validation.IndependentDeclaredPatternPropertiesRule
IndependentModelPatternPropertiesRule = datamodel_code_generator.model.runtime_validation.IndependentModelPatternPropertiesRule
IntEnum = datamodel_code_generator.model.enum.IntEnum
InvalidClassNameError = datamodel_code_generator.InvalidClassNameError
JsonSchemaConstraintKey = Literal['minimum', 'maximum', 'multipleOf', 'exclusiveMaximum', 'exclusiveMinimum', 'pattern', 'minLength', 'maxLength', 'minItems', 'maxItems']
JsonSchemaConstraintValue = int | float | str | bool
JsonSchemaDataTypeKwargValue = datamodel_code_generator.parser.jsonschema.JsonSchemaConstraintValue
class JsonSchemaObject(BaseModel)
    # identity datamodel_code_generator.parser._schema_object.JsonSchemaObject
    @classmethod
    def get_fields(cls) -> dict[str, Any]
    __constraint_field_order__: ClassVar[tuple[str, ...]] = ('exclusiveMinimum', 'minimum', 'exclusiveMaximum', 'maximum', 'multipleOf', 'minItems', 'maxItems', 'minLength', 'maxLength', 'pattern', 'uniqueItems')
    __constraint_fields__: set[str] = set(__constraint_field_order__)
    __extra_key__: str = SPECIAL_PATH_FORMAT.format('extras')
    __metadata_only_fields__: set[str] = {'title', 'description', 'id', '$id', '$anchor', '$schema', '$comment', 'examples', 'example', 'x_enum_varnames', 'x_enum_descriptions', 'x_enum_field_as_literal', 'read_as_const', *DEFINITION_KEYS, 'default', 'readOnly', 'writeOnly', 'deprecated', 'contentEncoding', 'contentMediaType', 'contentSchema', 'externalDocs', 'xml', '$recursiveRef', 'recursiveRef', '$recursiveAnchor', 'recursiveAnchor', '$dynamicRef', 'dynamicRef', '$dynamicAnchor', 'dynamicAnchor'}
        uses DEFINITION_KEYS: tuple[DefinitionKey, ...] = ('$defs', 'definitions')
    __schema_affecting_extras__: set[str] = {'const'}
    @model_validator(mode='before')
    @classmethod
    def validate_exclusive_maximum_and_exclusive_minimum(cls, values: Any) -> Any
    @model_validator(mode='before')
    @classmethod
    def collect_extra_fields(cls, values: Any) -> Any
    @model_validator(mode='before')
    @classmethod
    def read_pattern_as_the_engines_compile_it(cls, values: Any, info: ValidationInfo) -> Any
    @model_validator(mode='before')
    @classmethod
    def read_unevaluated_properties_as_additional(cls, values: Any, info: ValidationInfo) -> Any
    @model_validator(mode='before')
    @classmethod
    def collect_empty_enum(cls, values: Any, info: ValidationInfo) -> Any
    @model_validator(mode='before')
    @classmethod
    def read_ref_alone_where_its_siblings_are_ignored(cls, values: Any, info: ValidationInfo) -> Any
    @property
    def python_field_overrides(self) -> Mapping[str, str]
    @field_validator('ref')
    @classmethod
    def validate_ref(cls, value: Any) -> Any
    @field_validator('required', mode='before')
    @classmethod
    def validate_required(cls, value: Any) -> Any
    @field_validator('type', mode='before')
    @classmethod
    def validate_null_type(cls, value: Any) -> Any
    items: Optional[Union[list[Union[JsonSchemaObject, bool]], JsonSchemaObject, bool]] = None
    additionalItems: Optional[Union[JsonSchemaObject, bool]] = None
    prefixItems: Optional[list[Union[JsonSchemaObject, bool]]] = None
    uniqueItems: Optional[bool] = None
    type: Optional[Union[str, list[str]]] = None
    format: Optional[str] = None
    pattern: Optional[str] = None
    minLength: Optional[int] = None
    maxLength: Optional[int] = None
    minimum: Optional[UnionIntFloat] = None
    maximum: Optional[UnionIntFloat] = None
    minItems: Optional[int] = None
    maxItems: Optional[int] = None
    minProperties: Optional[int] = None
    maxProperties: Optional[int] = None
    multipleOf: Optional[FloatConstraint] = None
    exclusiveMaximum: Optional[Union[FloatConstraint, bool]] = None
    exclusiveMinimum: Optional[Union[FloatConstraint, bool]] = None
    additionalProperties: Optional[Union[JsonSchemaObject, bool]] = None
    unevaluatedProperties: Optional[Union[JsonSchemaObject, bool]] = None
    unevaluatedItems: Optional[Union[JsonSchemaObject, bool]] = None
    patternProperties: Optional[dict[str, Union[JsonSchemaObject, bool]]] = None
    propertyNames: Optional[Union[JsonSchemaObject, bool]] = None
    oneOf: list[Union[JsonSchemaObject, bool]] = Field(default_factory=list)
    anyOf: list[Union[JsonSchemaObject, bool]] = Field(default_factory=list)
    allOf: list[Union[JsonSchemaObject, bool]] = Field(default_factory=list)
    enum: list[Any] = Field(default_factory=list)
    writeOnly: Optional[bool] = None
    readOnly: Optional[bool] = None
    properties: Optional[dict[str, Union[JsonSchemaObject, bool]]] = None
    required: list[str] = Field(default_factory=list)
    ref: Optional[str] = Field(default=None, alias='$ref')
    recursiveRef: Optional[str] = Field(default=None, alias='$recursiveRef')
    recursiveAnchor: Optional[bool] = Field(default=None, alias='$recursiveAnchor')
    dynamicRef: Optional[str] = Field(default=None, alias='$dynamicRef')
    dynamicAnchor: Optional[str] = Field(default=None, alias='$dynamicAnchor')
    nullable: Optional[bool] = None
    x_enum_varnames: list[str | None] = Field(default_factory=list, alias='x-enum-varnames')
    x_enum_descriptions: list[str | None] = Field(default_factory=list, alias='x-enum-descriptions')
    x_enum_names: list[str | None] = Field(default_factory=list, alias='x-enumNames')
    x_enum_field_as_literal: Optional[bool] = Field(default=None, alias='x-enum-field-as-literal')
    description: Optional[str] = None
    title: Optional[str] = None
    example: Any = None
    examples: Any = None
    default: Any = None
    id: Optional[str] = Field(default=None, alias='$id')
    anchor: Optional[str] = Field(default=None, alias='$anchor')
    custom_type_path: Optional[str] = Field(default=None, alias='customTypePath')
    custom_base_path: str | list[str] | None = Field(default=None, alias='customBasePath')
    is_boolean_schema_false: bool = Field(default=False, exclude=True)
    read_as_const: bool = Field(default=False, alias=_READ_AS_CONST_KEY)
        uses _READ_AS_CONST_KEY = 'x-datamodel-code-generator-read-as-const'
    extras: dict[str, Any] = Field(alias=__extra_key__, default_factory=dict)
    discriminator: Optional[Union[Discriminator, str]] = None
    model_config = ConfigDict(arbitrary_types_allowed=True, ignored_types=(cached_property,), defer_build=True)
    @classmethod
    @override
    def __get_pydantic_core_schema__(cls, source: Any, handler: GetCoreSchemaHandler, /) -> CoreSchema
    def model_dump(self, **kwargs: Any) -> dict[str, Any]
    @property
    def schema_location(self) -> SchemaLocation | None
    def with_schema_location(self, location: SchemaLocation | None) -> Self
    def model_post_init(self, __context: Any, /) -> None
    @cached_property
    def is_object(self) -> bool
    @cached_property
    def is_array(self) -> bool
    @cached_property
    def ref_object_name(self) -> str
    @field_validator('items', mode='before')
    @classmethod
    def validate_items(cls, values: Any) -> Any
    @field_validator('custom_base_path', mode='before')
    @classmethod
    def validate_custom_base_path(cls, value: Any) -> Any
    @cached_property
    def has_default(self) -> bool
    @cached_property
    def has_constraint(self) -> bool
    @cached_property
    def ref_type(self) -> JSONReference | None
    @cached_property
    def type_has_null(self) -> bool
    @cached_property
    def has_multiple_types(self) -> bool
    @cached_property
    def has_ref_with_schema_keywords(self) -> bool
    @cached_property
    def is_ref_with_nullable_only(self) -> bool
@snooper_to_methods()
class JsonSchemaParser(Parser['JSONSchemaParserConfig', 'JsonSchemaFeatures'])
    SCHEMA_PATHS: ClassVar[list[str]] = list(_DEFAULT_SCHEMA_PATHS)
        uses _DEFAULT_SCHEMA_PATHS = ('#/definitions', '#/$defs')
    SCHEMA_OBJECT_TYPE: ClassVar[type[JsonSchemaObject]] = JsonSchemaObject
    REQUIRED_ONLY_SCHEMA_ALLOWED_FIELDS: ClassVar[frozenset[str]] = frozenset({'required', 'type', 'extras'})
    CONDITIONAL_SCHEMA_ALLOWED_FIELDS: ClassVar[frozenset[str]] = REQUIRED_ONLY_SCHEMA_ALLOWED_FIELDS | {'properties'}
    STRING_PROPERTY_NAME_FIELDS: ClassVar[frozenset[str]] = frozenset({'type', 'anyOf', 'pattern', 'minLength', 'maxLength', 'title', 'description', 'default'})
    COMPATIBLE_PYTHON_TYPES: ClassVar[dict[str, frozenset[str]]] = {'string': frozenset({'str', 'String'}), 'integer': frozenset({'int', 'Integer'}), 'number': frozenset({'float', 'int', 'Number'}), 'boolean': frozenset({'bool', 'Boolean'}), 'array': frozenset((name for name, given in GIVEN_CONTAINERS.items() if given.slot in ITEM_CONTAINERS.slots)), 'object': frozenset({*(name for name, given in GIVEN_CONTAINERS.items() if given.slot in MAPPINGS.slots), 'TypedDict'})}
        uses GIVEN_CONTAINERS: Final[Mapping[str, GivenContainer]] = MappingProxyType({**_slot_class_rows('list'), **_slot_class_rows('set'), **_slot_class_rows('frozen_set'), **_slot_class_rows('sequence'), 'MutableSequence': GivenContainer('sequence', _abstract('MutableSequence')), **_slot_class_rows('tuple', 'list', variadic=True), 'AbstractSet': GivenContainer('frozen_set', _abstract('AbstractSet', 'typing')), 'MutableSet': GivenContainer('set', _abstract('MutableSet')), **_slot_class_rows('dict'), **_slot_class_rows('mapping'), 'MutableMapping': GivenContainer('mapping', _abstract('MutableMapping'))})
        uses ITEM_CONTAINERS: Final = ContainerKind('frozen_set', 'set', 'sequence', 'list')
        uses MAPPINGS: Final = ContainerKind('mapping', 'dict')
    PYTHON_TYPE_OVERRIDE_ALWAYS: ClassVar[frozenset[str]] = frozenset({'Callable', 'Type', 'defaultdict', 'OrderedDict', 'Counter', 'deque', 'ChainMap'})
    def __init__(self, source: str | Path | list[Path] | ParseResult, *, config: JSONSchemaParserConfig | None=None, **options: Unpack[JSONSchemaParserConfigDict]) -> None
    def get_field_extras(self, obj: JsonSchemaObject) -> dict[str, Any]
    @cached_property
    def schema_paths(self) -> list[tuple[str, list[str]]]
    @cached_property
    @override
    def schema_features(self) -> JsonSchemaFeatures
    @property
    def root_id(self) -> str | None
    @root_id.setter
    def root_id(self, value: str | None) -> None
    def should_parse_enum_as_literal(self, obj: JsonSchemaObject, property_name: str | None=None, property_obj: JsonSchemaObject | None=None) -> bool
    def is_constraints_field(self, obj: JsonSchemaObject, data_type: DataType | None=None) -> bool
    def get_object_field(self, *, field_name: str | None, field: JsonSchemaObject | None, required: bool, field_type: DataType, alias: str | list[str] | None, original_field_name: str | None, effective_default: Any=None, effective_has_default: bool | None=None, use_default_with_required: bool=False, class_name: str | None=None, output_names: tuple[str, ...]=()) -> DataModelFieldBase
    def get_data_type(self, obj: JsonSchemaObject) -> DataType
    def get_ref_data_type(self, ref: str) -> DataType
    def set_additional_properties(self, path: str, obj: JsonSchemaObject) -> None
    def set_unevaluated_properties(self, path: str, obj: JsonSchemaObject) -> None
    def set_title(self, path: str, obj: JsonSchemaObject) -> None
    def set_schema_id(self, path: str, obj: JsonSchemaObject) -> None
    def set_deprecated(self, path: str, obj: JsonSchemaObject) -> None
    def set_schema_extensions(self, path: str, obj: JsonSchemaObject) -> None
    def parse_combined_schema(self, name: str, obj: JsonSchemaObject, path: list[str], target_attribute_name: str) -> list[DataType]
    def parse_any_of(self, name: str, obj: JsonSchemaObject, path: list[str]) -> list[DataType]
    def parse_one_of(self, name: str, obj: JsonSchemaObject, path: list[str]) -> list[DataType]
    def parse_all_of(self, name: str, obj: JsonSchemaObject, path: list[str], ignore_duplicate_model: bool=False) -> DataType
    def parse_object_fields(self, obj: JsonSchemaObject, path: list[str], module_name: Optional[str]=None, class_name: Optional[str]=None, *, output_names: tuple[str, ...]=()) -> list[DataModelFieldBase]
    def parse_object(self, name: str, obj: JsonSchemaObject, path: list[str], singular_name: bool=False, unique: bool=True) -> DataType
    def parse_pattern_properties(self, name: str, pattern_properties: dict[str, JsonSchemaObject | bool], path: list[str], *, property_names: JsonSchemaObject | bool | None=None) -> DataType
    def parse_property_names(self, name: str, property_names: JsonSchemaObject | bool, additional_properties: JsonSchemaObject | bool | None, path: list[str], parent_obj: JsonSchemaObject | None=None) -> DataType
    def parse_item(self, name: str, item: JsonSchemaObject, path: list[str], singular_name: bool=False, parent: JsonSchemaObject | None=None) -> DataType
    def parse_list_item(self, name: str, target_items: Sequence[JsonSchemaObject | bool], path: list[str], parent: JsonSchemaObject, singular_name: bool=True) -> list[DataType]
    def parse_array_fields(self, name: str, obj: JsonSchemaObject, path: list[str], singular_name: bool=True, use_annotated: bool | None=None) -> DataModelFieldBase
    def parse_array(self, name: str, obj: JsonSchemaObject, path: list[str], original_name: str | None=None) -> DataType
    def parse_root_type(self, name: str, obj: JsonSchemaObject, path: list[str]) -> DataType
    def parse_enum_as_literal(self, obj: JsonSchemaObject) -> DataType
    def parse_enum(self, name: str, obj: JsonSchemaObject, path: list[str], singular_name: bool=False, unique: bool=True) -> DataType
    def resolve_ref(self, object_ref: str) -> Reference
    @property
    @override
    def document_roles_to_seed(self) -> DocumentRoles
    def parse_ref(self, obj: JsonSchemaObject, path: list[str]) -> None
    def parse_id(self, obj: JsonSchemaObject, path: list[str]) -> None
    @contextmanager
    def root_id_context(self, root_raw: dict[str, Any]) -> Generator[None, None, None]
    def parse_raw_obj(self, name: str, raw: dict[str, YamlValue] | YamlValue, path: list[str]) -> None
    def parse_obj(self, name: str, obj: JsonSchemaObject, path: list[str]) -> None
    @override
    def parse_raw(self) -> None
    def parse_json_pointer(self, raw: dict[str, YamlValue], ref: str, path_parts: list[str]) -> None
    self.remote_object_cache
    self.raw_obj
    self.reserved_refs
    self.field_keys
    self.get_field_extra_key
LEGACY_ROWS: Final[Mapping[str, Mapping[str, str]]] = {'intersect_allof_keywords': {'legacy-merge-row': 'a `$ref` with sibling keywords and an inherited property override are their earlier merge', 'legacy-lookahead-patterns': 'the patterns of the parts are joined by lookaheads, unwarned; an allOf member merge keeps the later pattern', 'legacy-all-of-site-form': "an allOf site of value parts keeps its earlier form, unwarned where they conflict (a model without fields only where their intersection admits an object), its root writing the keywords of parts some value meets, and a `$ref` member's sibling `enum` or `const` does not narrow its literals", 'legacy-all-of-null-as-written': "null is read as written where parts meet: a `type` without null keeps the null members beside it and those of an inherited type, an allOf map member's `type` keeps its null, and a `None` merged enum value fits"}, 'intersect_combined_schema_keywords': {'legacy-combined-branch-row': "a branch of an `anyOf` or `oneOf` is its merge with the keywords beside it (`all_of_member_row` without bounds), the branch's value of a keyword winning", 'legacy-enum-outside-type-kept': 'an `enum` value that the merged `type` rejects stays where parts meet', 'legacy-schema-maps-merged-as-schemas': 'an inherited property override merges a `properties` or `patternProperties` map as a schema: names spelled like keywords the merge mode does not inherit, or `nullable`, are dropped', 'legacy-type-narrowing-override-deferred': 'a partial override without constraints is a copy of the inherited field, which keeps the inherited type and drops at most its null, also where the override narrows the type further', 'legacy-type-shape-length-from-max-items': 'the type shape of `--allof-merge-mode none` keeps the length of a tuple only from an explicit `maxItems`', 'legacy-all-of-ref-siblings-ignored': 'an allOf member that is a `$ref` with sibling keywords is the `$ref` alone', 'legacy-all-of-alias-member-base': 'an allOf member naming a schema that is only a `$ref` takes that alias as its base', 'legacy-all-of-union-null-dropped': "the union of the variants an allOf member's anyOf or oneOf gives admits no null, even where every part does", 'legacy-all-of-required-names-dropped': 'a field, an item or a branch whose allOf names one model and adds only `required` names to it, through a member or beside the allOf, is that model, which does not require them'}, 'read_allof_parents_as_their_models': {'legacy-ref-sibling-parent-read-alone': 'an inherited schema that is a `$ref` with sibling keywords is read by its siblings alone, not as the merge its model is built from', 'legacy-inherited-required-names-unwritten': 'a name only the inherited schemas require is not written in the model, which takes the field its bases give it, optional where the base it takes it from declares it optional', 'legacy-root-site-members-as-written': 'the allOf root model row reads the members as written, so an alias of an object model beside a member that adds only a type or required names is a root model of the type'}, 'distribute_allof_over_unions': {'legacy-ref-branch-without-site-parts': 'a `$ref` branch of an anyOf or oneOf takes the `properties` and `required` beside it, not the allOf members nor the value keywords beside it, and the subtypes of a discriminated `$ref` branch take none of the allOf members', 'legacy-operation-all-of-before-union': 'an OpenAPI request or response body with an allOf beside an anyOf or oneOf is parsed by its allOf, the union dropped', 'legacy-union-parts-joined': "every anyOf and oneOf of an allOf is parsed at the site's path and their branches join one union, each with the other parts; a discriminated `$ref` branch of them is left out", 'legacy-ref-member-union-dropped': 'an allOf member naming an allOf that holds an anyOf or oneOf is a base, which later passes drop as a root model', 'legacy-value-union-members-unread': "the value branches of an allOf's anyOf and oneOf are read only where every combination admits no object and the site writes a model: a field writes Any, a field of one $ref member that type, and an allOf of object branches leaves them out"}, 'intersect_merged_allof_members': {'legacy-all-of-object-merge-row': 'allOf members merged into one object are their merge row: of a property several of them declare, the later `type`, `nullable` and `multipleOf` win, two type lists join and a later `true` replaces the schema, and the allOf members of a member are dropped', 'legacy-all-of-root-first-typed-member': 'a named allOf of one `$ref` to a value schema and value members is the first typed of them with the constraints of all, the `enum` of another member dropped', 'legacy-all-of-enum-root-self-alias': 'a named allOf whose merged root is an enum written as a class names itself where no output reads the annotations (standard dataclasses), which later passes type `Any`', 'legacy-all-of-map-counts-dropped': 'an allOf of a `$ref` to a map and members that add only property counts or `propertyNames` is a model without fields at a definition, and the reference elsewhere, which only a field whose whole type it is writes the counts beside', 'legacy-all-of-base64-reference-layered': 'a length or `pattern` an allOf site adds to a `$ref` to base64 text is written beside the reference, checked on the decoded value'}}
LITERAL_DECIDABLE_KEYWORDS: Final[frozenset[str]] = NUMBER_KEYWORDS | LENGTH_KEYWORDS | {'pattern'}
NONE = datamodel_code_generator.types.NONE
NUMBER_KEYWORD_ORDER = datamodel_code_generator.model.pydantic_v2.types.number_kwargs
NamedTuple = typing.NamedTuple
OutputModelContext = datamodel_code_generator.model.output.OutputModelContext
POSITIONAL_SCHEMA_KEYWORDS: Final = frozenset(schema_positions('child', shapes=SEQUENCE_SCHEMA_SHAPES))
    uses SEQUENCE_SCHEMA_SHAPES: Final[tuple[SchemaShape, ...]] = ('sequence', 'single-or-sequence')
PROPERTY_COUNT_KEYWORDS: Final[frozenset[str]] = frozenset({'maxProperties', 'minProperties'})
@final
@record
class RefEdge
    # identity datamodel_code_generator.parser._schema_graph.RefEdge
    source: SchemaLocation
    keyword: str
    document: DocumentId
    ref: str
    spelling: str
    home: str | None = None
@final
@record
class RefKey
    # identity datamodel_code_generator.parser._schema_graph.RefKey
    key: str
    spelling: str
    mapping: tuple[str, str] | None = None
class ReservedTarget(TypedDict)
    # identity datamodel_code_generator.parser._schema_graph.ReservedTarget
    document: ReadOnly[DocumentId]
    key: ReadOnly[str]
    node: ReadOnly[SchemaNodeId | None]
SCHEMA_GRAPH: Final[ContextVar[SchemaGraphView | None]] = ContextVar('schema_graph', default=None)
SCHEMA_POSITIONS: Final[Mapping[str, SchemaPosition]] = MappingProxyType(<dict of 23>)
SCHEMA_SHAPES: Final[Mapping[str, SchemaShape]] = MappingProxyType({keyword: position.shape for keyword, position in SCHEMA_POSITIONS.items()})
SCHEMA_VALUE_KEYS: frozenset[str] = frozenset(schema_positions(shapes=SCHEMA_VALUE_SHAPES))
    uses SCHEMA_VALUE_SHAPES: Final[tuple[SchemaShape, ...]] = ('sequence', 'single', 'single-or-sequence')
SINGLE_SCHEMA_SHAPES: Final[tuple[SchemaShape, ...]] = ('single', 'single-or-sequence')
SPECIAL_PATH_FORMAT = datamodel_code_generator.parser.base.SPECIAL_PATH_FORMAT
SPECIAL_PATH_MARKER = datamodel_code_generator.reference.SPECIAL_PATH_MARKER
Sentinel = typing_extensions.Sentinel
StrEnum = datamodel_code_generator.model.enum.StrEnum
TaggedUnionValue = Union[int, str]
TypeAlias = typing.TypeAlias
TypedDictModel = datamodel_code_generator.model.typed_dict.TypedDict  [lazy]
UNIQUE_ITEMS_ARRAY_TAIL_PATH_STEP = datamodel_code_generator.model.runtime_validation.UNIQUE_ITEMS_ARRAY_TAIL_PATH_STEP
UNIQUE_ITEMS_MAPPING_ADDITIONAL_VALUES_PATH_STEP = datamodel_code_generator.model.runtime_validation.UNIQUE_ITEMS_MAPPING_ADDITIONAL_VALUES_PATH_STEP
UNIQUE_ITEMS_MAPPING_PATTERN_VALUES_PATH_STEP = datamodel_code_generator.model.runtime_validation.UNIQUE_ITEMS_MAPPING_PATTERN_VALUES_PATH_STEP
UNIQUE_ITEMS_MAPPING_VALUES_PATH_STEP = datamodel_code_generator.model.runtime_validation.UNIQUE_ITEMS_MAPPING_VALUES_PATH_STEP
Union = typing.Union
UniqueItemsPathStep = datamodel_code_generator.model.runtime_validation.UniqueItemsPathStep
ValidationInfo = pydantic.ValidationInfo
def all_of_root_keyword_kinds(schema_type: str, mapped_type: str, *, text: bool=False) -> frozenset[str] | None
    # identity datamodel_code_generator._constraint_applicability.all_of_root_keyword_kinds
and_ = operator.and_
def bounds_admit_no_value(schema: Mapping[str, Any]) -> bool
    # identity datamodel_code_generator.parser._intersection.bounds_admit_no_value
def canonical_ref_spelling(value: str) -> str
    # identity datamodel_code_generator.parser._schema_graph.canonical_ref_spelling
catch_warnings = warnings.catch_warnings
chain = itertools.chain
def common_types(first: Sequence[str], second: Sequence[str]) -> tuple[str, ...]
    # identity datamodel_code_generator.parser._intersection.common_types
compress = itertools.compress
def const_type(value: object, /, *, bool_literals: bool=True) -> ConstType
    # identity datamodel_code_generator.model._decisions.literal_default.const_type
copy = copy.copy
core_schema = pydantic_core.core_schema
def declared_keywords(kinds: DeclaredKinds, *, by_type: bool=False) -> frozenset[str]
    # identity datamodel_code_generator._constraint_applicability.declared_keywords
def declared_string_keywords_taken(taken: frozenset[str], type_paths: Iterable[str]) -> frozenset[str]
    # identity datamodel_code_generator._constraint_applicability.declared_string_keywords_taken
deepcopy = copy.deepcopy
deque = collections.deque
digits = string.digits
def distinct_tags(values: Iterable[Any], /, identity: TagIdentity) -> bool
    # identity datamodel_code_generator.model._decisions.tag_value.distinct_tags
def dump_null_sources(dump: Mapping[str, Any]) -> NullSources
    # identity datamodel_code_generator.parser._null_facts.dump_null_sources
def enforced_keywords(options: ConstraintOptions, leaves: Iterable[tuple[str | None, Sequence[object]]], constraints: Mapping[str, float | str], zero_bound_classes: Mapping[str, tuple[str, ...]]) -> frozenset[str]
    # identity datamodel_code_generator._constraint_applicability.enforced_keywords
def enum_as_literal(*, extension: bool | None, mapped: str | None, setting: LiteralSetting | None, member_count: int) -> bool
    # identity datamodel_code_generator.model._decisions.enum_kind.enum_as_literal
def escape_token(token: str | int, /) -> str
    # identity datamodel_code_generator._json_pointer.escape_token
def field_tag(site: FieldTagSite, facts: FieldTagFacts, /) -> FieldTag | None
    # identity datamodel_code_generator.model._decisions.tag_value.field_tag
field_validator = pydantic.field_validator
final = typing_extensions.final
def generate_alias(generator_name: str, field_name: str, target_python_version: PythonVersion | None=None) -> str | None
    # identity datamodel_code_generator._alias_generators.generate_alias
get_inferred_module_name = datamodel_code_generator.reference.get_inferred_module_name
get_inherited_fields = datamodel_code_generator.model.base.get_inherited_fields
get_model_by_path = datamodel_code_generator.parser.asyncapi.get_model_by_path
get_special_path = datamodel_code_generator.parser.base.get_special_path
get_yaml_parse_errors = datamodel_code_generator.util.get_yaml_parse_errors
def holds_inherited_member_value(value_type: str, value: object, /) -> bool
    # identity datamodel_code_generator.model._decisions.enum_kind.holds_inherited_member_value
def holds_member_value(value_type: str, value: object, /, *, keep_member_values: bool) -> bool
    # identity datamodel_code_generator.model._decisions.enum_kind.holds_member_value
def holds_number_format(mapped_type: str) -> bool
    # identity datamodel_code_generator._constraint_applicability.holds_number_format
def inherited_override_row(parent: Mapping[str, Any], child: dict[str, Any], *, merge_mode: str, drops_null: Callable[[Mapping[str, Any]], bool], maps_by_name: bool=False) -> dict[str, Any]
    # identity datamodel_code_generator.parser._intersection.inherited_override_row
def inherited_positional_tail(read: Callable[[str], object], key: str) -> object
    # identity datamodel_code_generator.parser._intersection.inherited_positional_tail
def inherits_keyword(merge_mode: str, keyword: str) -> bool
    # identity datamodel_code_generator.parser._intersection.inherits_keyword
def intersect_constraint(keyword: str, first: Any, second: Any) -> Any
    # identity datamodel_code_generator.parser._intersection.intersect_constraint
def intersect_keywords(parts: Sequence[Mapping[str, Any]], row: dict[str, Any], *, extras_key: str, parts_admit_null: Callable[[Sequence[Mapping[str, Any]]], bool], enum_entries_skip_null: Callable[[Mapping[str, Any]], bool], ref_siblings_are_parts: bool=True, legacy_rows: Collection[str]=(), admits_value: Callable[[frozenset[str], object], bool] | None=None) -> KeywordIntersection
    # identity datamodel_code_generator.parser._intersection.intersect_keywords
def intersect_multiple_of(first: Any, second: Any) -> Any
    # identity datamodel_code_generator.parser._intersection.intersect_multiple_of
def is_literal_kind(kind: LiteralValueKind, /, *, bool_literals: bool=True) -> bool
    # identity datamodel_code_generator.model._decisions.enum_kind.is_literal_kind
is_not = operator.is_not
def is_portable_pattern(pattern: str) -> bool
    # identity datamodel_code_generator._regex_syntax.is_portable_pattern
def join_pointer(tokens: Iterable[str | int], /) -> str
    # identity datamodel_code_generator._json_pointer.join_pointer
json_schema_data_formats: dict[str, dict[str, Types]] = get_data_formats(is_openapi=True)
def keyword_kinds() -> tuple[tuple[frozenset[str], frozenset[str]], ...]
    # identity datamodel_code_generator._constraint_applicability.keyword_kinds
def length_keywords_by_type(options: ConstraintOptions) -> bool
    # identity datamodel_code_generator._constraint_applicability.length_keywords_by_type
@overload
def linearize(heads: list[_T], key: Callable[[_T], Hashable], parents_of: Callable[[_T], Sequence[_T]], node_of: Callable[[_T], Hashable] | None=None, *, rule: Literal['first-head']='first-head') -> list[_T]
    # identity datamodel_code_generator._mro.linearize
@overload
def linearize(heads: list[_T], key: Callable[[_T], Hashable], parents_of: Callable[[_T], Sequence[_T]], node_of: Callable[[_T], Hashable] | None=None, *, rule: Literal['python']) -> list[_T] | None
    # identity datamodel_code_generator._mro.linearize
def linearize(heads: list[_T], key: Callable[[_T], Hashable], parents_of: Callable[[_T], Sequence[_T]], node_of: Callable[[_T], Hashable] | None=None, *, rule: C3Rule='first-head') -> list[_T] | None
    # identity datamodel_code_generator._mro.linearize
def literal_check(values: Sequence[object], constraints: Mapping[str, float | str]) -> tuple[tuple[str, ...], tuple[bool, ...]]
    # identity datamodel_code_generator._constraint_applicability.literal_check
def literal_enforces_every_keyword(options: ConstraintOptions, values: Sequence[object], constraints: Mapping[str, float | str], declared: AbstractSet[str]) -> bool
    # identity datamodel_code_generator._constraint_applicability.literal_enforces_every_keyword
def literal_pattern_value(pattern: str) -> str | None
    # identity datamodel_code_generator._regex_syntax.literal_pattern_value
def literal_value_kind(value: object, /) -> LiteralValueKind
    # identity datamodel_code_generator._json_schema.literal_value_kind
load_data = datamodel_code_generator.load_data
math = math
def merge_inherited_keyword(key: str, parent: object, child: object, read_parent: Callable[[str], object], merge_value: Callable[[object, object], object], *, maps_by_name: bool) -> object
    # identity datamodel_code_generator.parser._intersection.merge_inherited_keyword
def merge_inherited_value(parent: object, child: object, merge_schemas: Callable[[Any, Any], object], *, row: InheritedRow) -> object
    # identity datamodel_code_generator.parser._intersection.merge_inherited_value
model_validator = pydantic.model_validator
def schema_positions(*roles: SchemaRole, shapes: Collection[SchemaShape]=(), without: Collection[str]=()) -> tuple[str, ...]
    # identity datamodel_code_generator._json_schema.schema_positions
simplefilter = warnings.simplefilter
def sort_descendants_first(items: list[_T], key: Callable[[_T], Hashable | None], ancestors_of: Callable[[_T], Collection[Hashable]]) -> list[_T]
    # identity datamodel_code_generator._mro.sort_descendants_first
def split_declared_keywords(kinds: DeclaredKinds, *, number_taken: frozenset[str] | None, string_taken: frozenset[str] | None, by_type: bool=False) -> tuple[frozenset[str], frozenset[str]]
    # identity datamodel_code_generator._constraint_applicability.split_declared_keywords
def split_json_pointer(schema: dict[str, YamlValue] | list[YamlValue], pointer: str, *, names: SlashNames='joined') -> list[str]
    # identity datamodel_code_generator.parser._schema_reading.split_json_pointer
def strongly_connected_components(graph: Mapping[NodeT, AbstractSet[NodeT]]) -> list[set[NodeT]]
    # identity datamodel_code_generator._scc.strongly_connected_components
suppress = contextlib.suppress
def tagged_union_discriminator(declared: object, /, *, literal_property: str) -> dict[str, Any]
    # identity datamodel_code_generator.model._decisions.tag_value.tagged_union_discriminator
title_to_class_name = datamodel_code_generator.parser.base.title_to_class_name
def undeclared_keywords_taken(taken: frozenset[str], *, value_literal: bool) -> frozenset[str]
    # identity datamodel_code_generator._constraint_applicability.undeclared_keywords_taken
def unescape_token(token: str, /) -> str
    # identity datamodel_code_generator._json_pointer.unescape_token
def union_tag_values(literals: Mapping[int, Any], /, *, branch_count: int, required: Container[int]) -> dict[int, Any] | None
    # identity datamodel_code_generator.model._decisions.tag_value.union_tag_values
def untaken_values(values: Mapping[str, Any], untaken: frozenset[str]) -> dict[str, Any]
    # identity datamodel_code_generator._constraint_applicability.untaken_values
urljoin = urllib.parse.urljoin
def uses_default_with_required(*, required: bool, has_default: bool, use_default: bool) -> bool
    # identity datamodel_code_generator.parser._field_rows.uses_default_with_required
def walk_schema_resources(raw: dict[str, Any], implicit: Sequence[tuple[SchemaPath, dict[str, Any]]], *, document: DocumentId, base: str, id_field: str | None, children: ResourceChildren, identifier: ResourceIdentifier) -> DocumentResources
    # identity datamodel_code_generator.parser._schema_graph.walk_schema_resources
def writes_beside_literal(options: ConstraintOptions, *, writes_field_arguments: bool) -> bool
    # identity datamodel_code_generator._constraint_applicability.writes_beside_literal

[datamodel_code_generator.parser.mcp]
DefinitionKey: TypeAlias = Literal['$defs', 'definitions']
JSONSchemaDraft: TypeAlias = Literal['https://json-schema.org/draft/2020-12/schema']
JSONSchemaMapping: TypeAlias = Mapping[str, Any]
JSON_SCHEMA_DRAFT_2020_12: JSONSchemaDraft = 'https://json-schema.org/draft/2020-12/schema'
class MCPTool(BaseModel)
    model_config = ConfigDict(extra='allow', protected_namespaces=())
    name: StrictStr
    input_schema: JSONSchemaMapping = Field(alias='inputSchema')
    output_schema: JSONSchemaMapping = Field(default_factory=dict, alias='outputSchema')
    title: StrictStr = ''
    description: StrictStr = ''
    annotations: JSONSchemaMapping = Field(default_factory=dict)
    meta: JSONSchemaMapping = Field(default_factory=dict, alias='_meta')
    @property
    def has_output_schema(self) -> bool
OPTIONAL_MAPPING_TOOL_KEYS: tuple[OptionalMappingToolKey, ...] = ('outputSchema', 'annotations', '_meta')
OPTIONAL_STRING_TOOL_KEYS: tuple[OptionalStringToolKey, ...] = ('title', 'description')
OptionalMappingToolKey: TypeAlias = Literal['outputSchema', 'annotations', '_meta']
OptionalStringToolKey: TypeAlias = Literal['title', 'description']
SCHEMA_MAP_KEYS: frozenset[str] = frozenset(schema_positions(shapes=('map',)))
SCHEMA_VALUE_KEYS = datamodel_code_generator.parser.jsonschema.SCHEMA_VALUE_KEYS
SchemaKey: TypeAlias = Literal['inputSchema', 'outputSchema']
def convert_mcp_tools_to_jsonschema(data: Any) -> dict[str, Any]

[datamodel_code_generator.parser.openapi]
BaseModelT = TypeVar('BaseModelT', bound=BaseModel)
class ComponentsObject(BaseModel)
    schemas: dict[str, Union[ReferenceObject, JsonSchemaObject]] = Field(default_factory=dict)
    responses: dict[str, OrReference[ResponseObject]] = Field(default_factory=dict)
    examples: dict[str, OrReference[ExampleObject]] = Field(default_factory=dict)
    requestBodies: dict[str, OrReference[RequestBodyObject]] = Field(default_factory=dict)
    headers: dict[str, OrReference[HeaderObject]] = Field(default_factory=dict)
EmptyDataType = datamodel_code_generator.types.EmptyDataType
class ExampleObject(BaseModel)
    summary: Optional[str] = None
    description: Optional[str] = None
    value: YamlValue = None
    externalValue: Optional[str] = None
class HeaderObject(BaseModel)
    description: Optional[str] = None
    required: bool = False
    deprecated: bool = False
    schema_: Optional[JsonSchemaObject] = Field(None, alias='schema')
    example: YamlValue = None
    examples: Optional[Union[str, OrReference[ExampleObject]]] = None
    content: dict[str, MediaObject] = Field(default_factory=dict)
class MediaObject(BaseModel)
    schema_: Optional[Union[ReferenceObject, JsonSchemaObject, bool]] = Field(None, alias='schema')
    itemSchema: Optional[Union[ReferenceObject, JsonSchemaObject, bool]] = None
    example: YamlValue = None
    examples: Optional[Union[str, OrReference[ExampleObject]]] = None
    @classmethod
    @override
    def __get_pydantic_core_schema__(cls, source: Any, handler: GetCoreSchemaHandler, /) -> CoreSchema
    @property
    def schema_location(self) -> SchemaLocation | None
MediaSchema = JsonSchemaObject | ReferenceObject | bool
@record(slots=False)
class MediaSchemaSource
    schema: MediaSchema
    from_item_schema: bool = False
    location: SchemaLocation | None = None
OPERATION_NAMES: list[str] = list(OPERATION_METHODS)
    uses OPERATION_METHODS: Final = ('get', 'put', 'post', 'delete', 'patch', 'head', 'options', 'trace')
@snooper_to_methods()
class OpenAPIParser(JsonSchemaParser)
    SCHEMA_PATHS: ClassVar[list[str]] = ['#/components/schemas']
    config: OpenAPIParserConfig
    @cached_property
    def schema_features(self) -> OpenAPISchemaFeatures
    def __init__(self, source: str | Path | list[Path] | ParseResult, *, config: OpenAPIParserConfig | None=None, **options: Unpack[OpenAPIParserConfigDict]) -> None
    def get_ref_model(self, ref: str, role: str | None=None) -> dict[str, Any]
    @contextmanager
    def openapi_self_context(self, specification: dict[str, Any]) -> Generator[None, None, None]
    @property
    def models_not_found_hint(self) -> str
    def parse(self, *args: Any, **kwargs: Any) -> str | dict[tuple[str, ...], Result]
    def get_ref_data_type(self, ref: str) -> DataType
    def parse_object_fields(self, obj: JsonSchemaObject, path: list[str], module_name: Optional[str]=None, class_name: Optional[str]=None, *, output_names: tuple[str, ...]=()) -> list[DataModelFieldBase]
    def resolve_object(self, obj: ReferenceObject | BaseModelT, object_type: type[BaseModelT], role: str | None=None) -> BaseModelT
    def parse_schema(self, name: str, obj: JsonSchemaObject, path: list[str]) -> DataType
    def parse_request_body(self, name: str, request_body: RequestBodyObject, path: list[str]) -> dict[str, DataType]
    def parse_responses(self, name: str, responses: dict[str | int, ReferenceObject | ResponseObject], path: list[str]) -> dict[str | int, dict[str, DataType]]
    @classmethod
    def parse_tags(cls, name: str, tags: list[str], path: list[str]) -> list[str]
    def parse_all_parameters(self, name: str, parameters: list[ReferenceObject | ParameterObject], path: list[str], *, location: SchemaLocation | None=None) -> DataType | None
    def parse_operation(self, raw_operation: dict[str, Any], path: list[str], *, location: SchemaLocation | None=None) -> None
    def parse_raw(self) -> None
    self.open_api_scopes
    self.include_path_parameters
    self.use_status_code_in_response_name
    self.keep_first_character_of_path_keys
    self.keep_content_parameter_refs
    self.skip_path_extension_keys
    self.use_enum_field_as_literal_in_operations
    self.openapi_include_paths
    self.openapi_include_info_version
    self.openapi_info_version
    self.inline_object_bodies
    self.swagger_2
class Operation(BaseModel)
    tags: list[str] = Field(default_factory=list)
    summary: Optional[str] = None
    description: Optional[str] = None
    operationId: Optional[str] = None
    parameters: list[OrReference[ParameterObject]] = Field(default_factory=list)
    requestBody: Optional[OrReference[RequestBodyObject]] = None
    responses: dict[Union[str, int], OrReference[ResponseObject]] = Field(default_factory=dict)
    deprecated: bool = False
OrReference = Annotated[Union[ReferenceObject, _ObjectT], WrapValidator(_reference_first)]
    uses _ObjectT = TypeVar('_ObjectT')
class ParameterLocation(Enum)
    query = 'query'
    querystring = 'querystring'
    header = 'header'
    path = 'path'
    cookie = 'cookie'
class ParameterObject(BaseModel)
    name: Optional[str] = None
    in_: Optional[ParameterLocation] = Field(None, alias='in')
    description: Optional[str] = None
    required: bool = False
    deprecated: bool = False
    schema_: Optional[JsonSchemaObject] = Field(None, alias='schema')
    example: YamlValue = None
    examples: Optional[Union[str, OrReference[ExampleObject]]] = None
    content: dict[str, MediaObject] = Field(default_factory=dict)
RE_APPLICATION_JSON_PATTERN: Pattern[str] = re.compile('^application/.*json$')
class RawMediaObject(BaseModel)
    schema_: RawSchema | None = Field(None, alias='schema')
    itemSchema: RawSchema | None = None
@record(slots=False)
class RawMediaSchemaSource
    schema: RawSchema
    from_item_schema: bool = False
RawSchema = dict[str, YamlValue] | StrictBool
class ReferenceObject(BaseModel)
    ref: str = Field(..., alias='$ref')
class RequestBodyObject(BaseModel)
    description: Optional[str] = None
    content: dict[str, MediaObject] = Field(default_factory=dict)
    required: bool = False
class ResponseObject(BaseModel)
    description: Optional[str] = None
    headers: dict[str, ParameterObject] = Field(default_factory=dict)
    content: dict[Union[str, int], MediaObject] = Field(default_factory=dict)
fnmatch = fnmatch
get_model_by_path = datamodel_code_generator.parser.asyncapi.get_model_by_path
def is_inline_object_body(obj: JsonSchemaObject) -> bool
def is_object_map_body(obj: JsonSchemaObject) -> bool
def read_ref_value(parser: SchemaRefsHost, resolved_ref: str, *, reading: PointerReading | None=None, role: str | None=None, or_missing: bool=False, as_schema: bool=False) -> YamlValue
    # identity datamodel_code_generator.parser._schema_refs.read_ref_value
def ref_file_document(parser: SchemaRefsHost, file_part: str, role: str | None=None) -> dict[str, YamlValue]
    # identity datamodel_code_generator.parser._schema_refs.ref_file_document
@cache
def yaml_string_keywords() -> YamlStringKeywords

[datamodel_code_generator.parser.openapi_media]
IgnoredEncodingReason: TypeAlias = Literal['oas_encoding_request_body_only', 'oas_encoding_media_not_applicable']
MediaOwner: TypeAlias = Literal['request_body', 'response', 'parameter', 'header']
@final
@record
class MediaType
    type: str
    subtype: str
    parameters: tuple[tuple[str, str], ...]
def encoding_applies(owner: MediaOwner, *, openapi_32: bool) -> bool
def encoding_media(value: str, owner: MediaOwner, *, openapi_32: bool) -> MediaType | IgnoredEncodingReason
def parse_media_type(value: str) -> MediaType

[datamodel_code_generator.parser.openapi_scope]
@record(public=True)
class ApiDeclarationFrame
    declaration: SchemaLocation
    raw_document: dict[str, YamlValue]
    candidate_name: str
    root_use_site: SchemaLocation
    role: SchemaRole
    phase: Literal['operation', 'schema', 'file']
    original_parameters: tuple[tuple[SchemaLocation, ...], ...] = ()
    effective_parameters: tuple[SchemaLocation, ...] = ()
    engine_path: tuple[str, ...] = ()
    raw_schema: YamlValue = None
    validated_schema: JsonSchemaObject | None = None
    projection: Projection = 'value'
    raw_operation: dict[str, YamlValue] | None = None
    effective_operation: dict[str, YamlValue] | None = None
@record
class ApiIgnoredDeclaration
    declaration: SchemaLocation
    use_site: SchemaLocation | None
    reason: Literal['oas_encoding_request_body_only', 'oas_encoding_media_not_applicable', 'oas_non_multipart_encoding_headers', 'oas_header_ignored']
    owner: MediaOwner
    media: str | None = None
    wire_name: str | None = None
ApiObjectKind: TypeAlias = Literal['parameter', 'request_body', 'response', 'media', 'encoding', 'header', 'callback']
class ApiOpenAPIParser(OpenAPIParser)
    model_resolver: ApiModelResolver
    def __init__(self, source: str | Path | list[Path] | ParseResult | dict[str, YamlValue], *, config: OpenAPIParserConfig | None=None, **options: Unpack[OpenAPIParserConfigDict]) -> None
    def parse_obj(self, name: str, obj: JsonSchemaObject, path: list[str]) -> None
    def get_ref_model(self, ref: str, role: str | None=None) -> dict[str, YamlValue]
    def parse_json_pointer(self, raw: dict[str, YamlValue], ref: str, path_parts: list[str]) -> None
    def walk_api_path_items(self, items: dict[str, YamlValue], base_path: list[str], *, scope: Literal['paths', 'webhooks', 'pathItems']='paths', prefix: str='') -> None
    def dispose(self) -> None
    self.declaration_frames
    self.declaration_uses
    self.ignored_declarations
@record
class ApiParameterDeclaration
    occurrence: SchemaLocation
    raw: dict[str, YamlValue]
    target: _ApiObject
    key: tuple[str, str]
    name: str
SchemaRole: TypeAlias = Literal['schema', 'parameter', 'request_body', 'response_body', 'response_header', 'request_encoding_header', 'response_encoding_header']

[datamodel_code_generator.parser.protobuf]
__all__ = [
    'ProtobufParser',
    'convert_protobuf_schema_data',
]
IMPORT_PATTERN = re.compile('^\\s*import\\s+(?:public\\s+|weak\\s+)?"([^"]+)"\\s*;', re.MULTILINE)
LABEL_REPEATED = 3
LABEL_REQUIRED = 2
MAP_KEY_PYTHON_TYPES: dict[int, str] = {**dict.fromkeys(_INTEGER_TYPES, 'int'), TYPE_BOOL: 'bool', TYPE_STRING: 'str'}
    uses _INTEGER_TYPES = (TYPE_INT32, TYPE_INT64, TYPE_UINT32, TYPE_UINT64, TYPE_SINT32, TYPE_SINT64, TYPE_FIXED32, TYPE_FIXED64, TYPE_SFIXED32, TYPE_SFIXED64)
PROTO2_DEFAULTS: dict[int, Any] = dict(sorted({**dict.fromkeys(_INTEGER_TYPES, 0), TYPE_DOUBLE: 0.0, TYPE_FLOAT: 0.0, TYPE_BOOL: False, TYPE_STRING: '', TYPE_BYTES: b''}.items()))
    uses _INTEGER_TYPES = (TYPE_INT32, TYPE_INT64, TYPE_UINT32, TYPE_UINT64, TYPE_SINT32, TYPE_SINT64, TYPE_FIXED32, TYPE_FIXED64, TYPE_SFIXED32, TYPE_SFIXED64)
PROTO_TCHARS = re.compile('(?P<comment>//[^\\n]*|/\\*[\\s\\S]*?(?:\\*/|\\Z))|\\"(?:\\\\[\\s\\S]|[^\\"\\\\])*\\"|\'(?:\\\\[\\s\\S]|[^\'\\\\])*\'|[a-zA-Z_][a-zA-Z_0-9]*|[^\\s]')
class ProtobufParser(JsonSchemaParser)
    def __init__(self, source: str | Path | list[Path] | ParseResult, *, config: ProtobufParserConfig | None=None, **options: Unpack[ProtobufParserConfigDict]) -> None
    def convert_to_json_schema_data(self) -> dict[str, Any]
    def parse_raw(self) -> None
SCALAR_OR_ENUM_TYPES = frozenset({*SCALAR_SCHEMAS, TYPE_ENUM})
SCALAR_SCHEMAS: dict[int, dict[str, Any]] = {TYPE_DOUBLE: {'type': 'number', 'format': 'double'}, TYPE_FLOAT: {'type': 'number', 'format': 'float'}, TYPE_INT64: {'type': 'integer', 'format': 'int64'}, TYPE_UINT64: {'type': 'integer', 'format': 'int64', 'minimum': 0, 'maximum': 18446744073709551615}, TYPE_INT32: {'type': 'integer', 'format': 'int32'}, TYPE_UINT32: {'type': 'integer', 'format': 'int32', 'minimum': 0, 'maximum': 4294967295}, TYPE_SINT32: {'type': 'integer', 'format': 'int32'}, TYPE_SINT64: {'type': 'integer', 'format': 'int64'}, TYPE_FIXED32: {'type': 'integer', 'format': 'int32', 'minimum': 0, 'maximum': 4294967295}, TYPE_FIXED64: {'type': 'integer', 'format': 'int64', 'minimum': 0, 'maximum': 18446744073709551615}, TYPE_SFIXED32: {'type': 'integer', 'format': 'int32'}, TYPE_SFIXED64: {'type': 'integer', 'format': 'int64'}, TYPE_BOOL: {'type': 'boolean'}, TYPE_STRING: {'type': 'string'}, TYPE_BYTES: {'type': 'string', 'format': 'binary'}}
TYPE_BOOL = 8
TYPE_BYTES = 12
TYPE_DOUBLE = 1
TYPE_ENUM = 14
TYPE_FIXED32 = 7
TYPE_FIXED64 = 6
TYPE_FLOAT = 2
TYPE_GROUP = 10
TYPE_INT32 = 5
TYPE_INT64 = 3
TYPE_MESSAGE = 11
TYPE_SFIXED32 = 15
TYPE_SFIXED64 = 16
TYPE_SINT32 = 17
TYPE_SINT64 = 18
TYPE_STRING = 9
TYPE_UINT32 = 13
TYPE_UINT64 = 4
WEAK_IMPORT_PATTERN = re.compile('^\\s*import\\s+weak\\s+"([^"]+)"\\s*;', re.MULTILINE)
WELL_KNOWN_PROTO_PATHS = frozenset({'google/protobuf/any.proto', 'google/protobuf/api.proto', 'google/protobuf/descriptor.proto', 'google/protobuf/duration.proto', 'google/protobuf/empty.proto', 'google/protobuf/field_mask.proto', 'google/protobuf/source_context.proto', 'google/protobuf/struct.proto', 'google/protobuf/timestamp.proto', 'google/protobuf/type.proto', 'google/protobuf/wrappers.proto'})
WELL_KNOWN_SCHEMAS: dict[str, dict[str, Any]] = {'google.protobuf.Timestamp': {'type': 'string', 'format': 'date-time'}, 'google.protobuf.Duration': {'type': 'string', 'format': 'duration'}, 'google.protobuf.Struct': {'type': 'object', 'additionalProperties': True}, 'google.protobuf.ListValue': {'type': 'array', 'items': {}}, 'google.protobuf.Value': {'anyOf': [null_schema(), {'type': 'boolean'}, {'type': 'number'}, {'type': 'string'}, {'type': 'object', 'additionalProperties': True}, {'type': 'array', 'items': {}}]}, 'google.protobuf.Any': {'type': 'object', 'additionalProperties': True}, 'google.protobuf.Empty': {'type': 'object', 'properties': {}, 'additionalProperties': False}, 'google.protobuf.FieldMask': {'type': 'string'}, **{f"google.protobuf.{name}Value": with_null(SCALAR_SCHEMAS[type_], 'member') for name, type_ in (('Double', TYPE_DOUBLE), ('Float', TYPE_FLOAT), ('Int64', TYPE_INT64), ('UInt64', TYPE_UINT64), ('Int32', TYPE_INT32), ('UInt32', TYPE_UINT32), ('Bool', TYPE_BOOL), ('String', TYPE_STRING), ('Bytes', TYPE_BYTES))}}
def convert_protobuf_schema_data(raw_schema: Any, *, base_path: Path | None=None, protobuf_version: ProtobufVersion | None=None, schema_version_mode: VersionMode | None=None, encoding: str='utf-8') -> dict[str, Any]
normalize_newlines = datamodel_code_generator.parser.base.normalize_newlines

[datamodel_code_generator.parser.schema_version]
__all__ = [
    'DataFormatMapping',
    'DocumentDialect',
    'FeatureMetadata',
    'JsonSchemaFeatures',
    'OpenAPISchemaFeatures',
    'SchemaFeaturesT',
    'SchemaKind',
    'detect_asyncapi_version',
    'detect_jsonschema_version',
    'detect_openapi_version',
    'document_dialect',
    'get_data_formats',
]
@dataclass(frozen=True)
class AsyncAPIClientFeatures
    server_protocols: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='server protocols', description='The protocol of a server; the client opens the channels of `ws` and `wss` servers as WebSockets, and the server-sent event channels of `http`, `https` and `sse` servers', client_status='partial')
    server_sent_events: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='server-sent event channels', description="A channel that carries `text/event-stream` messages, its own or a trait's, or that no `ws` or `wss` server serves and an `sse` server serves or whose `http` binding fixes `Accept` or `Content-Type` to `text/event-stream`; the client opens it with a GET, whose query and header parameters are those of the `http` bindings of the channel and its operations, and receives the JSON data of each of its messages until the stream ends, without reconnecting; it does not receive other content types on it or open it with another method", client_status='partial')
    server_variables: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='server variables', description="The variables of a server's URL; the client substitutes each by its `default`, which OpenAPI requires and AsyncAPI does not", client_status='partial')
    channel_addresses: bool = _client_feature(introduced='AsyncAPI 3.0', doc_name='channels without an address', description='A channel whose `address` is null or absent, which the client cannot open', client_status='not_supported')
    websocket_bindings: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='WebSocket channel bindings', description='`bindings.ws` of a channel; the client opens GET handshakes, with the properties of objects `query` and `headers` as parameters, and the values a `Sec-WebSocket-Protocol` header fixes as the subprotocols it offers', client_status='partial')
    message_content_types: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='message content types', description='The payloads of messages of AsyncAPI, JSON Schema or OpenAPI schemas; the client codes JSON by the models, binary media and binary strings as bytes, and text media whose models type a string as UTF-8 text; a form or multipart message is carried as bytes where its payload is a binary string, and not where it is structured', client_status='partial')
    message_payloads: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='messages without a payload', description='A message that declares no `payload`, which the client cannot code', client_status='not_supported')
    message_headers: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='message headers', description='The `headers` of a message; the client codes its payload but neither sends nor reads headers, which a WebSocket frame does not carry, and opens the channel without a warning', client_status='partial')
    several_messages: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='several messages per direction', description='More than one message that an application sends, or receives, on one channel; the client tells JSON messages apart by a tag their models declare, else by their class when it sends them, and Pydantic models code them as a union; it does not receive text and JSON messages on one channel', client_status='partial')
    shared_addresses: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='channels sharing an address', description='Channels at one address on the same servers, which the client opens as one connection that carries the messages of them all; their handshakes must take the same parameters, offer the same subprotocols and need the same security', client_status='partial')
    operation_replies: bool = _client_feature(introduced='AsyncAPI 3.0', doc_name='operation replies', description="The `reply` of an operation; the client sends or receives its messages on the operation's connection, without correlating them with a request, and does not open a reply on a channel at another address or sent to an address a runtime expression gives", client_status='partial')
    security_requirements: bool = _client_feature(introduced='AsyncAPI 2.0', doc_name='security requirements', description="The security of a server or an operation, its own or a trait's; the client sends `httpApiKey`, `http`, `oauth2` and `openIdConnect` credentials on a handshake, and needs every server of a channel to require the same", client_status='partial')
DataFormatMapping: TypeAlias = 'dict[str, dict[str, Types]]'
@dataclass(frozen=True)
class DocumentDialect
    version: SchemaVersion
    features: JsonSchemaFeatures
class FeatureMetadata(TypedDict)
    introduced: str
    doc_name: str
    description: str
    status: Literal['supported', 'partial', 'not_supported']
    client_status: NotRequired[Literal['supported', 'partial', 'not_supported']]
@dataclass(frozen=True)
class JsonSchemaFeatures
    null_in_type_array: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 4 or earlier', doc_name='Null in type array', description="Allows `type: ['string', 'null']` syntax for nullable types", status='supported'))
    defs_not_definitions: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='$defs', description='Uses `$defs` instead of `definitions` for schema definitions', status='supported'))
    prefix_items: bool = field(default=False, metadata=FeatureMetadata(introduced='2020-12', doc_name='prefixItems', description='Tuple validation using `prefixItems` keyword', status='supported'))
    boolean_schemas: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 6', doc_name='Boolean schemas', description='Allows `true` and `false` as valid schemas', status='supported'))
    id_field: str = field(default='$id', metadata=FeatureMetadata(introduced='Draft 6', doc_name='$id', description='Schema identifier field (`id` in Draft 4, `$id` in Draft 6+)', status='supported'))
    definitions_key: str = field(default='$defs', metadata=FeatureMetadata(introduced='Draft 4', doc_name='definitions/$defs', description='Key for reusable schema definitions', status='supported'))
    exclusive_as_number: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 6', doc_name='exclusiveMinimum/Maximum as number', description='Numeric `exclusiveMinimum`/`exclusiveMaximum` (boolean in Draft 4)', status='supported'))
    read_only_write_only: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 7', doc_name='readOnly/writeOnly', description='Field visibility hints for read-only and write-only properties', status='supported'))
    const_support: bool = field(default=True, metadata=FeatureMetadata(introduced='Draft 6', doc_name='const', description='Single constant value constraint', status='supported'))
    property_names: bool = field(default=True, metadata=FeatureMetadata(introduced='Draft 6', doc_name='propertyNames', description='Dict key type constraints via pattern, enum, or $ref', status='supported'))
    contains: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 6', doc_name='contains', description='Count constraints are modeled when contains matches every item; general schema-valued contains is not supported', status='partial'))
    contains_counts: bool = field(default=False, kw_only=True, metadata=FeatureMetadata(introduced='2019-09', doc_name='minContains/maxContains', description='Count limits on the items `contains` matches (a `contains` needs one match before 2019-09)', status='partial'))
    deprecated_keyword: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='deprecated', description='Marks schema elements as deprecated', status='partial'))
    if_then_else: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 7', doc_name='if/then/else', description='Conditional schema validation', status='not_supported'))
    content_encoding: bool = field(default=False, metadata=FeatureMetadata(introduced='Draft 7', doc_name='contentMediaType/contentEncoding', description='Content type and encoding hints for strings', status='partial'))
    content_schema: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='contentSchema', description='Schema for decoded string content', status='partial'))
    anchor: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='$anchor', description='Location-independent schema references', status='supported'))
    vocabulary: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='$vocabulary', description='Vocabulary declarations for meta-schemas', status='not_supported'))
    unevaluated_properties: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='unevaluatedProperties', description='Additional properties not evaluated by subschemas', status='partial'))
    unevaluated_items: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='unevaluatedItems', description='Additional items not evaluated by subschemas', status='partial'))
    dependent_required: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='dependentRequired', description='Conditional property requirements', status='not_supported'))
    dependent_schemas: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='dependentSchemas', description='Conditional schema application based on property presence', status='not_supported'))
    recursive_ref: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='$recursiveRef/$recursiveAnchor', description='Recursive reference resolution via anchors', status='supported'))
    dynamic_ref: bool = field(default=False, metadata=FeatureMetadata(introduced='2020-12', doc_name='$dynamicRef/$dynamicAnchor', description='Dynamic reference resolution across schemas', status='supported'))
    ref_sibling_keywords: bool = field(default=False, metadata=FeatureMetadata(introduced='2019-09', doc_name='$ref with sibling keywords', description='Keywords beside `$ref` apply with the referenced schema (ignored in Draft 4-7 and OAS 3.0)', status='partial'))
    @classmethod
    def from_version(cls, version: JsonSchemaVersion) -> JsonSchemaFeatures
@dataclass(frozen=True)
class OpenAPISchemaFeatures(JsonSchemaFeatures)
    nullable_keyword: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='nullable', description='Uses `nullable: true` for nullable types (deprecated in 3.1)', status='supported'))
    discriminator_support: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='discriminator', description='Polymorphism support via `discriminator` keyword', status='supported'))
    webhooks: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.1', doc_name='webhooks', description='Top-level webhooks object for incoming events; the client generates no methods for webhook operations, only helpers that verify and decode deliveries', status='supported', client_status='partial'))
    media_item_schema: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.2', doc_name='itemSchema', description='Media Type Object item schema for sequential media', status='supported'))
    openapi_self: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.2', doc_name='$self', description='Root document URI for relative and absolute reference resolution', status='supported'))
    querystring_parameter: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.2', doc_name='querystring', description='Query string parameter object without a parameter name; the client ignores the `encoding` declarations of the members of a nameless form querystring', status='supported', client_status='partial'))
    xml_support: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='xml', description='XML serialization metadata (name, namespace, prefix)', status='partial'))
    external_docs: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='externalDocs', description='Reference to external documentation', status='partial'))
    links: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='links', description='Links between operations', status='not_supported'))
    callbacks: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='callbacks', description='Callback definitions for webhooks', status='not_supported'))
    security_schemes: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='securitySchemes', description='API security mechanism definitions', status='not_supported'))
    http_auth_schemes: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='http security schemes', description='HTTP authentication schemes; the client sends `basic` and `bearer` only', status='not_supported', client_status='partial'))
    mutual_tls: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.1', doc_name='mutualTLS', description='Mutual TLS security scheme', status='not_supported', client_status='not_supported'))
    cookie_style: bool = field(default=False, metadata=FeatureMetadata(introduced='OAS 3.2', doc_name='style: cookie', description='Cookie parameter style; earlier versions do not declare it', status='supported', client_status='supported'))
    deep_object_style: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='style: deepObject', description='Query parameters written as `name[key]=value`; the client writes objects of scalars, and arrays, scalars, nested objects and arrays of objects, which OpenAPI leaves undefined, of query parameters and URL-encoded form members as `name[]=value`, `name=value`, `name[key][key]=value` and `name[0][key]=value` only with `--client-deep-object-brackets`', status='supported', client_status='partial'))
    structured_parameter_values: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='Structured style values', description='Parameter and form member values that are no single scalar kind, such as nested objects, unions and `allOf`, written with a style; the client writes only a parameter outside a header, or a URL-encoded form member, that takes one item or an array of them, and with `--client-deep-object-brackets` deepObject values, as `style: deepObject` describes', status='supported', client_status='partial'))
    binary_in_text_media: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='Binary strings in text media', description='`format: binary` strings inside a JSON, URL-encoded or text body, a parameter or a header', status='supported', client_status='not_supported'))
    multipart_media: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='multipart media types', description='Multipart bodies; the client maps the parts of `multipart/form-data` with an object schema, or a union of objects that agree on the parts of each property, only, such as not `multipart/related`', status='supported', client_status='partial'))
    part_content_type: bool = field(default=True, metadata=FeatureMetadata(introduced='OAS 3.0', doc_name='Encoding contentType', description='Media types of form-data parts; the client writes a part holding no files as JSON, or its scalars as text in a media type other than a form or multipart media type', status='supported', client_status='partial'))
    @classmethod
    def from_openapi_version(cls, version: OpenAPIVersion) -> OpenAPISchemaFeatures
    @classmethod
    def from_asyncapi_version(cls, version: AsyncAPIVersion) -> OpenAPISchemaFeatures
SchemaFeaturesT = TypeVar('SchemaFeaturesT', bound=JsonSchemaFeatures)
SchemaKind: TypeAlias = Literal['jsonschema', 'openapi', 'asyncapi']
SchemaVersion: TypeAlias = JsonSchemaVersion | OpenAPIVersion | AsyncAPIVersion
def configured_version(configured: _VersionT | None, auto: _VersionT) -> _VersionT | None
def detect_asyncapi_version(data: dict[str, Any]) -> AsyncAPIVersion
def detect_jsonschema_version(data: dict[str, Any]) -> JsonSchemaVersion
def detect_openapi_version(data: dict[str, Any]) -> OpenAPIVersion
def document_dialect(raw: dict[str, Any], kind: SchemaKind, *, configured: SchemaVersion | None=None, inherited: DocumentDialect | None=None) -> DocumentDialect
def feature_label(feature: str, *, asyncapi: bool=False) -> str
def get_data_formats(*, is_openapi: bool=False) -> DataFormatMapping

[datamodel_code_generator.parser.xmlschema]
__all__ = [
    'XMLSchemaParser',
    'convert_xml_schema_data',
    'detect_xmlschema_version',
    'is_xml_schema_text',
]
BOOLEAN_SCHEMA: JsonSchema = {'type': 'boolean'}
BUILTIN_TYPE_SCHEMAS: dict[str, JsonSchema] = <dict of 50>
DATETIME_SCHEMA: JsonSchema = {'type': 'string', 'format': 'date-time'}
DAY_TIME_DURATION_PATTERN = re.compile('^(?P<sign>-)?P(?:(?P<days>\\d+)D)?(?:T(?:(?P<hours>\\d+)H)?(?:(?P<minutes>\\d+)M)?(?:(?P<seconds>\\d+(?:\\.\\d+)?)S)?)?$')
DECIMAL_SCHEMA: JsonSchema = {'type': 'number', 'format': 'decimal'}
DEFAULT_OCCURRENCE = _OccurrenceContext()
DefinitionKey = tuple[str, str | None, str]
IMPORT_DATETIME_MODULE = datamodel_code_generator.imports.IMPORT_DATETIME_MODULE
INTEGER_SCHEMA: JsonSchema = {'type': 'integer'}
INTERNAL_OCCURS_ARRAY = 'x-xsd-occurs-array'
JsonSchema = dict[str, Any]
NUMBER_SCHEMA: JsonSchema = {'type': 'number'}
PYTHON_NAME_PATTERN = re.compile('^[A-Za-z_][A-Za-z0-9_]*$')
QNameKey = tuple[str | None, str]
STRING_SCHEMA: JsonSchema = {'type': 'string'}
UNBOUNDED = 'unbounded'
UNSUPPORTED_XSD_PATTERN = re.compile('\\\\[iIcCpP]|-\\[|&&')
class XMLSchemaParser(JsonSchemaParser)
    def __init__(self, source: str | Path | list[Path] | ParseResult, *, config: XMLSchemaParserConfig | None=None, **options: Unpack[XMLSchemaParserConfigDict]) -> None
    @property
    def iter_source(self) -> Iterator[Source]
    def parse_raw(self) -> None
    self.use_xmlschema_datetime_default
XML_DATE_PATTERN = re.compile('^(?P<date>-?\\d{4,}-\\d{2}-\\d{2})(?:Z|[+-]\\d{2}:\\d{2})?$')
XML_SCHEMA_VERSIONING_NAMESPACE = 'http://www.w3.org/2007/XMLSchema-versioning'
XSD11_ELEMENTS = frozenset({'alternative', 'assert', 'assertion', 'defaultOpenContent', 'openContent', 'override'})
XSD_WHITESPACE_CHARS = ' \t\n\r'
def convert_xml_schema_data(raw_schema: Any, *, base_path: Path | None=None, xmlschema_version: XMLSchemaVersion | None=None, schema_version_mode: VersionMode | None=None, encoding: str='utf-8') -> dict[str, YamlValue]
def detect_xmlschema_version(source: ET.Element | str) -> XMLSchemaVersion
def is_xml_schema_text(text: str) -> bool

[datamodel_code_generator.preset]
class PresetConfig(BaseGenerateConfig)
    model_config = ConfigDict(frozen=True)
    def __init__(self, **values: Unpack[BaseGenerateConfigDict]) -> None
    def __bool__(self) -> bool
    def items(self) -> tuple[PresetConfigItem, ...]
@dataclass(frozen=True, slots=True)
class PresetConfigItem
    field_name: str
    value: PresetConfigValue
    @property
    def applied_value(self) -> PresetConfigValue
    @property
    def pyproject_value(self) -> bool | str | list[str]
PresetConfigValue: TypeAlias = bool | str | PresetEnumConfigValue | PresetEnumSequenceConfigValue
@dataclass(frozen=True, slots=True)
class PresetContext
    input_file_type: InputFileType
    output_model_type: DataModelType
    target_python_version: PythonVersion
PresetEnumConfigValue: TypeAlias = LiteralType | NamingStrategy | TargetPydanticVersion | ReuseScope | AllOfMergeMode | AllOfClassHierarchy | CollapseRootModelsNameStrategy | UnionMode | ReadOnlyWriteOnlyModelType | FieldTypeCollisionStrategy | VersionMode | DateClassType | DatetimeClassType | ExtraFields | DefaultValueType | ConstructorFieldOrder | OpenAPIAsDefinitions | OpenEnums | Formatter
PresetEnumSequenceConfigValue: TypeAlias = tuple[PresetEnumConfigValue, ...]
class PresetError(Exception)
PresetFormat = Literal['json', 'markdown']
@dataclass(frozen=True, slots=True)
class PresetInfo
    name: PresetName
    summary: str
    description: str
    requires_target_python_version: bool
    target_python_version: PythonVersion
    option_groups: tuple[PresetOptionGroup, ...]
class PresetName(str, Enum)
    StandardPy31020260619 = 'standard-py310-20260619'
    StandardPy31120260619 = 'standard-py311-20260619'
    StandardPy31220260619 = 'standard-py312-20260619'
    StandardPy31320260619 = 'standard-py313-20260619'
    StandardPy31420260619 = 'standard-py314-20260619'
    PracticalPy31020260619 = 'practical-py310-20260619'
    PracticalPy31120260619 = 'practical-py311-20260619'
    PracticalPy31220260619 = 'practical-py312-20260619'
    PracticalPy31320260619 = 'practical-py313-20260619'
    PracticalPy31420260619 = 'practical-py314-20260619'
    StandardPy31020260826 = 'standard-py310-20260826'
    StandardPy31120260826 = 'standard-py311-20260826'
    StandardPy31220260826 = 'standard-py312-20260826'
    StandardPy31320260826 = 'standard-py313-20260826'
    StandardPy31420260826 = 'standard-py314-20260826'
    PracticalPy31020260826 = 'practical-py310-20260826'
    PracticalPy31120260826 = 'practical-py311-20260826'
    PracticalPy31220260826 = 'practical-py312-20260826'
    PracticalPy31320260826 = 'practical-py313-20260826'
    PracticalPy31420260826 = 'practical-py314-20260826'
    StandardPy31020260909 = 'standard-py310-20260909'
    StandardPy31120260909 = 'standard-py311-20260909'
    StandardPy31220260909 = 'standard-py312-20260909'
    StandardPy31320260909 = 'standard-py313-20260909'
    StandardPy31420260909 = 'standard-py314-20260909'
    PracticalPy31020260909 = 'practical-py310-20260909'
    PracticalPy31120260909 = 'practical-py311-20260909'
    PracticalPy31220260909 = 'practical-py312-20260909'
    PracticalPy31320260909 = 'practical-py313-20260909'
    PracticalPy31420260909 = 'practical-py314-20260909'
    StandardPy31020261015 = 'standard-py310-20261015'
    StandardPy31120261015 = 'standard-py311-20261015'
    StandardPy31220261015 = 'standard-py312-20261015'
    StandardPy31320261015 = 'standard-py313-20261015'
    StandardPy31420261015 = 'standard-py314-20261015'
    StandardPy31520261015 = 'standard-py315-20261015'
    PracticalPy31020261015 = 'practical-py310-20261015'
    PracticalPy31120261015 = 'practical-py311-20261015'
    PracticalPy31220261015 = 'practical-py312-20261015'
    PracticalPy31320261015 = 'practical-py313-20261015'
    PracticalPy31420261015 = 'practical-py314-20261015'
    PracticalPy31520261015 = 'practical-py315-20261015'
    StandardPy31020261017 = 'standard-py310-20261017'
    StandardPy31120261017 = 'standard-py311-20261017'
    StandardPy31220261017 = 'standard-py312-20261017'
    StandardPy31320261017 = 'standard-py313-20261017'
    StandardPy31420261017 = 'standard-py314-20261017'
    StandardPy31520261017 = 'standard-py315-20261017'
    PracticalPy31020261017 = 'practical-py310-20261017'
    PracticalPy31120261017 = 'practical-py311-20261017'
    PracticalPy31220261017 = 'practical-py312-20261017'
    PracticalPy31320261017 = 'practical-py313-20261017'
    PracticalPy31420261017 = 'practical-py314-20261017'
    PracticalPy31520261017 = 'practical-py315-20261017'
    StandardPy31020261027 = 'standard-py310-20261027'
    StandardPy31120261027 = 'standard-py311-20261027'
    StandardPy31220261027 = 'standard-py312-20261027'
    StandardPy31320261027 = 'standard-py313-20261027'
    StandardPy31420261027 = 'standard-py314-20261027'
    StandardPy31520261027 = 'standard-py315-20261027'
    PracticalPy31020261027 = 'practical-py310-20261027'
    PracticalPy31120261027 = 'practical-py311-20261027'
    PracticalPy31220261027 = 'practical-py312-20261027'
    PracticalPy31320261027 = 'practical-py313-20261027'
    PracticalPy31420261027 = 'practical-py314-20261027'
    PracticalPy31520261027 = 'practical-py315-20261027'
    StandardPy31020261104 = 'standard-py310-20261104'
    StandardPy31120261104 = 'standard-py311-20261104'
    StandardPy31220261104 = 'standard-py312-20261104'
    StandardPy31320261104 = 'standard-py313-20261104'
    StandardPy31420261104 = 'standard-py314-20261104'
    StandardPy31520261104 = 'standard-py315-20261104'
    PracticalPy31020261104 = 'practical-py310-20261104'
    PracticalPy31120261104 = 'practical-py311-20261104'
    PracticalPy31220261104 = 'practical-py312-20261104'
    PracticalPy31320261104 = 'practical-py313-20261104'
    PracticalPy31420261104 = 'practical-py314-20261104'
    PracticalPy31520261104 = 'practical-py315-20261104'
    StandardPy31020261106 = 'standard-py310-20261106'
    StandardPy31120261106 = 'standard-py311-20261106'
    StandardPy31220261106 = 'standard-py312-20261106'
    StandardPy31320261106 = 'standard-py313-20261106'
    StandardPy31420261106 = 'standard-py314-20261106'
    StandardPy31520261106 = 'standard-py315-20261106'
    PracticalPy31020261106 = 'practical-py310-20261106'
    PracticalPy31120261106 = 'practical-py311-20261106'
    PracticalPy31220261106 = 'practical-py312-20261106'
    PracticalPy31320261106 = 'practical-py313-20261106'
    PracticalPy31420261106 = 'practical-py314-20261106'
    PracticalPy31520261106 = 'practical-py315-20261106'
    StandardPy31020261111 = 'standard-py310-20261111'
    StandardPy31120261111 = 'standard-py311-20261111'
    StandardPy31220261111 = 'standard-py312-20261111'
    StandardPy31320261111 = 'standard-py313-20261111'
    StandardPy31420261111 = 'standard-py314-20261111'
    StandardPy31520261111 = 'standard-py315-20261111'
    PracticalPy31020261111 = 'practical-py310-20261111'
    PracticalPy31120261111 = 'practical-py311-20261111'
    PracticalPy31220261111 = 'practical-py312-20261111'
    PracticalPy31320261111 = 'practical-py313-20261111'
    PracticalPy31420261111 = 'practical-py314-20261111'
    PracticalPy31520261111 = 'practical-py315-20261111'
    StandardPy31020261112 = 'standard-py310-20261112'
    StandardPy31120261112 = 'standard-py311-20261112'
    StandardPy31220261112 = 'standard-py312-20261112'
    StandardPy31320261112 = 'standard-py313-20261112'
    StandardPy31420261112 = 'standard-py314-20261112'
    StandardPy31520261112 = 'standard-py315-20261112'
    PracticalPy31020261112 = 'practical-py310-20261112'
    PracticalPy31120261112 = 'practical-py311-20261112'
    PracticalPy31220261112 = 'practical-py312-20261112'
    PracticalPy31320261112 = 'practical-py313-20261112'
    PracticalPy31420261112 = 'practical-py314-20261112'
    PracticalPy31520261112 = 'practical-py315-20261112'
    StandardPy31020261113 = 'standard-py310-20261113'
    StandardPy31120261113 = 'standard-py311-20261113'
    StandardPy31220261113 = 'standard-py312-20261113'
    StandardPy31320261113 = 'standard-py313-20261113'
    StandardPy31420261113 = 'standard-py314-20261113'
    StandardPy31520261113 = 'standard-py315-20261113'
    PracticalPy31020261113 = 'practical-py310-20261113'
    PracticalPy31120261113 = 'practical-py311-20261113'
    PracticalPy31220261113 = 'practical-py312-20261113'
    PracticalPy31320261113 = 'practical-py313-20261113'
    PracticalPy31420261113 = 'practical-py314-20261113'
    PracticalPy31520261113 = 'practical-py315-20261113'
    StandardPy31020261118 = 'standard-py310-20261118'
    StandardPy31120261118 = 'standard-py311-20261118'
    StandardPy31220261118 = 'standard-py312-20261118'
    StandardPy31320261118 = 'standard-py313-20261118'
    StandardPy31420261118 = 'standard-py314-20261118'
    StandardPy31520261118 = 'standard-py315-20261118'
    PracticalPy31020261118 = 'practical-py310-20261118'
    PracticalPy31120261118 = 'practical-py311-20261118'
    PracticalPy31220261118 = 'practical-py312-20261118'
    PracticalPy31320261118 = 'practical-py313-20261118'
    PracticalPy31420261118 = 'practical-py314-20261118'
    PracticalPy31520261118 = 'practical-py315-20261118'
    StandardPy31020261120 = 'standard-py310-20261120'
    StandardPy31120261120 = 'standard-py311-20261120'
    StandardPy31220261120 = 'standard-py312-20261120'
    StandardPy31320261120 = 'standard-py313-20261120'
    StandardPy31420261120 = 'standard-py314-20261120'
    StandardPy31520261120 = 'standard-py315-20261120'
    PracticalPy31020261120 = 'practical-py310-20261120'
    PracticalPy31120261120 = 'practical-py311-20261120'
    PracticalPy31220261120 = 'practical-py312-20261120'
    PracticalPy31320261120 = 'practical-py313-20261120'
    PracticalPy31420261120 = 'practical-py314-20261120'
    PracticalPy31520261120 = 'practical-py315-20261120'
    StandardPy31020261123 = 'standard-py310-20261123'
    StandardPy31120261123 = 'standard-py311-20261123'
    StandardPy31220261123 = 'standard-py312-20261123'
    StandardPy31320261123 = 'standard-py313-20261123'
    StandardPy31420261123 = 'standard-py314-20261123'
    StandardPy31520261123 = 'standard-py315-20261123'
    PracticalPy31020261123 = 'practical-py310-20261123'
    PracticalPy31120261123 = 'practical-py311-20261123'
    PracticalPy31220261123 = 'practical-py312-20261123'
    PracticalPy31320261123 = 'practical-py313-20261123'
    PracticalPy31420261123 = 'practical-py314-20261123'
    PracticalPy31520261123 = 'practical-py315-20261123'
@dataclass(frozen=True, slots=True)
class PresetOptionGroup
    title: str
    config: PresetConfig
    description: str
    input_file_types: frozenset[InputFileType] = frozenset()
    output_model_types: frozenset[DataModelType] = frozenset()
    requires_python_strenum: bool = False
    def __post_init__(self) -> None
    @property
    def options(self) -> tuple[str, ...]
    def applies_to(self, context: PresetContext) -> bool
    def applies_to_python(self, target_python_version: PythonVersion) -> bool
PresetRawConfigValue: TypeAlias = PresetConfigValue | Sequence[PresetEnumConfigValue] | str | None
@dataclass(frozen=True, slots=True)
class ResolvedPresetConfig
    target_python_version: PythonVersion | None
    items: tuple[PresetConfigItem, ...]
    force_field_constraints: bool
    def updates(self) -> dict[str, PresetConfigValue | PythonVersion]
def get_latest_preset_name() -> str
def get_preset_infos() -> tuple[PresetInfo, ...]
def get_preset_names() -> tuple[str, ...]
def latest_preset_name(family: str, target_python_version: PythonVersion) -> str
def preset_info_as_dict(info: PresetInfo) -> _PresetInfoDict
def render_preset_history() -> str
def render_preset_history_markdown() -> str
def render_presets(format_: PresetFormat) -> str
def render_presets_json() -> str
def render_presets_markdown() -> str
def resolve_preset_config_updates(preset: PresetName | str, *, context: PresetContext, use_annotated: bool, explicit_fields: set[str]) -> ResolvedPresetConfig

[datamodel_code_generator.preset_names]
PRESET_NAMES: Final[tuple[PresetName, ...]] = get_args(PresetName)
PresetName: TypeAlias = Literal['standard-py310-20260619', 'standard-py311-20260619', 'standard-py312-20260619', 'standard-py313-20260619', 'standard-py314-20260619', 'practical-py310-20260619', 'practical-py311-20260619', 'practical-py312-20260619', 'practical-py313-20260619', 'practical-py314-20260619', 'standard-py310-20260826', 'standard-py311-20260826', 'standard-py312-20260826', 'standard-py313-20260826', 'standard-py314-20260826', 'practical-py310-20260826', 'practical-py311-20260826', 'practical-py312-20260826', 'practical-py313-20260826', 'practical-py314-20260826', 'standard-py310-20260909', 'standard-py311-20260909', 'standard-py312-20260909', 'standard-py313-20260909', 'standard-py314-20260909', 'practical-py310-20260909', 'practical-py311-20260909', 'practical-py312-20260909', 'practical-py313-20260909', 'practical-py314-20260909', 'standard-py310-20261015', 'standard-py311-20261015', 'standard-py312-20261015', 'standard-py313-20261015', 'standard-py314-20261015', 'standard-py315-20261015', 'practical-py310-20261015', 'practical-py311-20261015', 'practical-py312-20261015', 'practical-py313-20261015', 'practical-py314-20261015', 'practical-py315-20261015', 'standard-py310-20261017', 'standard-py311-20261017', 'standard-py312-20261017', 'standard-py313-20261017', 'standard-py314-20261017', 'standard-py315-20261017', 'practical-py310-20261017', 'practical-py311-20261017', 'practical-py312-20261017', 'practical-py313-20261017', 'practical-py314-20261017', 'practical-py315-20261017', 'standard-py310-20261027', 'standard-py311-20261027', 'standard-py312-20261027', 'standard-py313-20261027', 'standard-py314-20261027', 'standard-py315-20261027', 'practical-py310-20261027', 'practical-py311-20261027', 'practical-py312-20261027', 'practical-py313-20261027', 'practical-py314-20261027', 'practical-py315-20261027', 'standard-py310-20261104', 'standard-py311-20261104', 'standard-py312-20261104', 'standard-py313-20261104', 'standard-py314-20261104', 'standard-py315-20261104', 'practical-py310-20261104', 'practical-py311-20261104', 'practical-py312-20261104', 'practical-py313-20261104', 'practical-py314-20261104', 'practical-py315-20261104', 'standard-py310-20261106', 'standard-py311-20261106', 'standard-py312-20261106', 'standard-py313-20261106', 'standard-py314-20261106', 'standard-py315-20261106', 'practical-py310-20261106', 'practical-py311-20261106', 'practical-py312-20261106', 'practical-py313-20261106', 'practical-py314-20261106', 'practical-py315-20261106', 'standard-py310-20261111', 'standard-py311-20261111', 'standard-py312-20261111', 'standard-py313-20261111', 'standard-py314-20261111', 'standard-py315-20261111', 'practical-py310-20261111', 'practical-py311-20261111', 'practical-py312-20261111', 'practical-py313-20261111', 'practical-py314-20261111', 'practical-py315-20261111', 'standard-py310-20261112', 'standard-py311-20261112', 'standard-py312-20261112', 'standard-py313-20261112', 'standard-py314-20261112', 'standard-py315-20261112', 'practical-py310-20261112', 'practical-py311-20261112', 'practical-py312-20261112', 'practical-py313-20261112', 'practical-py314-20261112', 'practical-py315-20261112', 'standard-py310-20261113', 'standard-py311-20261113', 'standard-py312-20261113', 'standard-py313-20261113', 'standard-py314-20261113', 'standard-py315-20261113', 'practical-py310-20261113', 'practical-py311-20261113', 'practical-py312-20261113', 'practical-py313-20261113', 'practical-py314-20261113', 'practical-py315-20261113', 'standard-py310-20261118', 'standard-py311-20261118', 'standard-py312-20261118', 'standard-py313-20261118', 'standard-py314-20261118', 'standard-py315-20261118', 'practical-py310-20261118', 'practical-py311-20261118', 'practical-py312-20261118', 'practical-py313-20261118', 'practical-py314-20261118', 'practical-py315-20261118', 'standard-py310-20261120', 'standard-py311-20261120', 'standard-py312-20261120', 'standard-py313-20261120', 'standard-py314-20261120', 'standard-py315-20261120', 'practical-py310-20261120', 'practical-py311-20261120', 'practical-py312-20261120', 'practical-py313-20261120', 'practical-py314-20261120', 'practical-py315-20261120', 'standard-py310-20261123', 'standard-py311-20261123', 'standard-py312-20261123', 'standard-py313-20261123', 'standard-py314-20261123', 'standard-py315-20261123', 'practical-py310-20261123', 'practical-py311-20261123', 'practical-py312-20261123', 'practical-py313-20261123', 'practical-py314-20261123', 'practical-py315-20261123']

[datamodel_code_generator.prompt]
ANSI_ESCAPE_RE = re.compile('\\x1b\\[[0-?]*[ -/]*[@-~]')
class CurrentOptionPayload(_Payload)
    name: str
    dest: str
    value: Any
    flags: list[str]
JSON_SCHEMA_DRAFT_2020_12 = datamodel_code_generator.json_config.JSON_SCHEMA_DRAFT_2020_12
class OptionMetadataPayload(_Payload)
    name: str
    flags: list[str]
    dest: str
    category: str
    description: str
    choices: list[Any] | None
    nargs: Any
    default: Any
    required: bool
    metavar: Any
    type: str | None
    action: str
    deprecated: bool
    deprecated_message: str | None
PROMPT_EXCLUDED_OPTIONS: frozenset[str] = COMMAND_DESTS - {'profile', 'job', 'all_jobs', 'ignore_pyproject', 'fail_on_multi_module_stdout'}
    uses COMMAND_DESTS: Final = frozenset((option.dest for option in OPTIONS if not option.config))
    uses OPTIONS: Final[tuple[Option, ...]] = <tuple of 318>
    uses JSON_SCHEMA_NAMES: Final = tuple(_JSON_SCHEMAS)
    uses DEFAULT_WATCH_DELAY: Final = 0.5
    uses _JSON_SCHEMAS: Final[Mapping[str, _JsonSchemaSource]] = MappingProxyType({'config': _JsonSchemaSource('json_config', 'json_config_json_schema', 'argv'), 'generate-prompt': _JsonSchemaSource('prompt', 'generate_prompt_json_schema', 'parsed'), 'generation': _JsonSchemaSource('_structured_output', 'generation_output_json_schema', 'argv'), 'model-metadata': _JsonSchemaSource('model_metadata', 'model_metadata_json_schema', 'argv'), 'recommend-options': _JsonSchemaSource('_structured_output', 'recommend_options_json_schema', 'main'), 'structured-output': _JsonSchemaSource('_structured_output', 'structured_output_json_schema', 'argv')})
PROMPT_GUIDANCE_SECTIONS: tuple[tuple[str, tuple[str, ...]], ...] = (('Agent Task', ("Recommend a final CLI command for the user's schema and target runtime. Include:", '- Final `datamodel-codegen` command in a shell code block.', '- Brief explanation for each selected option.', '- Rejected alternatives with the reason they do not fit.', '- Verification command, such as `datamodel-codegen ... --output models.py --check` (`--check` requires `--output`) or a diff against expected output.')), ('Decision Checklist', ("- Schema-specific options: when the input schema is available, add `--recommend-options` to this command (experimental) to include the schema's facts and the options recommended for it on top of the latest dated preset.", '- Input type: auto-detected schema/data, OpenAPI, AsyncAPI, JSON Schema, MCP tools, XML Schema, Protocol Buffers, Avro, GraphQL, CSV, Python input model, or raw JSON/YAML/dict data.', '- Output model type: `pydantic_v2.BaseModel`, `pydantic_v2.dataclass`, `dataclasses.dataclass`, `typing.TypedDict`, or `msgspec.Struct`.', '- Python/Pydantic version: align `--target-python-version`, `--output-model-type`, and `--target-pydantic-version` when generating Pydantic v2 models.', '- Strictness: choose `--strict-types` values, `--strict-nullable`, `--field-constraints`, and `--extra-fields`.', '- Aliases/naming: decide between API-compatible aliases and normalized names such as `--snake-case-field`.', '- Module layout: choose one file or an output directory with `--module-split-mode` and reuse options.', '- Structured output: use `--output-format json` for machine-readable prompt or generation output, `--emit-model-metadata` for generated model maps, and `--output-format-json-schema` when a tool needs a validation schema.', '- Runtime model base: use `--base-class` for a custom base class; it is separate from `--output-model-type`.', '- Validation constraints: prefer `--field-constraints`; add `--use-annotated` for Pydantic v2.')), ('Common Recipes', ('- Strict Pydantic v2: `--output-model-type pydantic_v2.BaseModel --target-pydantic-version 2.11 --use-annotated --field-constraints`, plus needed `--strict-types` values.', '- OpenAPI request/response models: `--input-file-type openapi --openapi-scopes schemas paths --read-only-write-only-model-type request-response`.', '- TypedDict modern syntax: `--output-model-type typing.TypedDict --target-python-version 3.12 --use-standard-collections --use-union-operator`.', '- Multi-module OpenAPI output: set `--output` to a directory and use `--module-split-mode single --all-exports-scope recursive --use-exact-imports`.', '- Machine-readable agent flow: run `--generate-prompt --output-format json` first, then validate tool integration with `--output-format-json-schema generate-prompt` or `structured-output`.')), ('Important Option Relationships', ('- `--use-annotated` also enables `--field-constraints`; prefer it for constrained Pydantic v2 fields.', '- `--openapi-include-paths` only has an effect when `--openapi-scopes paths` is included.', '- `--strict-types` requires one or more values: `str`, `int`, `float`, `bool`, `bytes`, `datetime`, `date`, or `time`.', '- `--use-specialized-enum` requires `--target-python-version >= 3.11`.', '- `--output-format json` is supported for generation, `--generate-prompt`, `--recommend-options`, `--check`, and `--diff-against`; not for `--watch`.', f"- `--output-format-json-schema` accepts " f"{english_list((f'`{name}`' for name in JSON_SCHEMA_NAMES), 'or', 'serial')}; " "use `config` for JSON configuration schemas.", '- `--validation` is deprecated; use `--field-constraints` for generated Field constraints.')))
    uses JSON_SCHEMA_NAMES: Final = tuple(_JSON_SCHEMAS)
    uses _JSON_SCHEMAS: Final[Mapping[str, _JsonSchemaSource]] = MappingProxyType({'config': _JsonSchemaSource('json_config', 'json_config_json_schema', 'argv'), 'generate-prompt': _JsonSchemaSource('prompt', 'generate_prompt_json_schema', 'parsed'), 'generation': _JsonSchemaSource('_structured_output', 'generation_output_json_schema', 'argv'), 'model-metadata': _JsonSchemaSource('model_metadata', 'model_metadata_json_schema', 'argv'), 'recommend-options': _JsonSchemaSource('_structured_output', 'recommend_options_json_schema', 'main'), 'structured-output': _JsonSchemaSource('_structured_output', 'structured_output_json_schema', 'argv')})
class PromptPayload(_Envelope)
    kind: Literal['prompt']
    question: str
    current_options: list[CurrentOptionPayload]
    current_options_text: str
    options_by_category: dict[str, list[OptionMetadataPayload]]
    options: list[OptionMetadataPayload]
    help_text: str
    recommendation: dict[str, Any] = Field(default_factory=dict, description='The --recommend-options --output-format json payload for the input schema (experimental; its schema is --output-format-json-schema recommend-options); absent unless the command has --recommend-options.')
def generate_prompt(args: Namespace, help_text: str, parser: ArgumentParser | None=None, *, recommendation: dict[str, Any] | None=None) -> str
def generate_prompt_json_schema() -> str
def option_arguments(field: str, value: object, *, negative: Callable[[str], str | None], flag: str | None=None) -> list[Any] | None
    # identity datamodel_code_generator._option_names.option_arguments

[datamodel_code_generator.prompt_data]
OPTION_DESCRIPTIONS: dict[str, str] = <dict of 314>

[datamodel_code_generator.python_literal]
class PythonCode(str)
    code: str
    __slots__ = ('code',)
    def __new__(cls, code: str, value: str | None=None) -> Self
    def __repr__(self) -> str
@dataclass(frozen=True, slots=True, eq=False, init=False)
class PythonRuntimeExpression
    import_: Import
    prefix: str
    suffix: str
    def __init__(self, import_: Import, prefix: str, suffix: str, value: str | None=None) -> None
    @property
    def code(self) -> str
    @property
    def imports(self) -> tuple[Import, ...]
    @classmethod
    def from_import_call(cls, import_: Import, *arguments: str, value: str | None=None) -> Self
    def with_import_aliases(self, aliases: Mapping[tuple[str | None, str], Import]) -> Self
    def __str__(self) -> str
    def __repr__(self) -> str
    __hash__ = object.__hash__
    def __deepcopy__(self, _memo: dict[int, object]) -> Self
def is_safe_public_type_name(value: object, *, target: PythonVersion | None=None) -> bool
def message_repr(value: object) -> str
def represent_python_value(value: Any) -> str
def represent_untrusted_public_type_name(value: Any, *, target: PythonVersion | None=None) -> str
def represent_untrusted_python_value(value: Any) -> str
def rewrite_runtime_expressions(value: object, aliases: Mapping[tuple[str | None, str], Import]) -> object
def rewrite_runtime_imports(imports: tuple[Import, ...], aliases: Mapping[tuple[str | None, str], Import]) -> tuple[Import, ...]
def runtime_expression_imports(value: object) -> tuple[Import, ...]
def stable_pformat(value: object) -> str
def stable_repr(value: object) -> str

[datamodel_code_generator.reference]
__all__ = computed by __getattr__
def __getattr__(name: str) -> Any
    | if name != '__all__':
    |     return _lazy_getattr(name)
    | public_names = (public_name for public_name in globals() if not public_name.startswith('_'))
    | value = (*(public_name for public_name in public_names if public_name not in _LAZY_EXPORTS), *_LAZY_EXPORTS)
    | globals()[name] = value
    | return value
    uses _lazy_getattr = _module_hooks(__name__, _LAZY_EXPORTS, cache=True)
    uses _LAZY_EXPORTS = {'PydanticFieldNameResolver': lambda: _default_field_name_resolver_class(ModelType.PYDANTIC), 'MsgspecFieldNameResolver': lambda: _default_field_name_resolver_class(ModelType.MSGSPEC), 'DEFAULT_FIELD_NAME_RESOLVERS': lambda: { model_type: _default_field_name_resolver_class(model_type) for model_type in _FIELD_NAME_RESOLVER_MODEL_TYPES }}
    uses _FIELD_NAME_RESOLVER_MODEL_TYPES = (ModelType.ENUM, ModelType.PYDANTIC, ModelType.CLASS, ModelType.MSGSPEC)
BINARY_CONTENT_KEY: Final = '_binary_content'
class ClassName(NamedTuple)
    name: str
    duplicate_name: str | None
DEFAULT_FIELD_NAME_RESOLVERS = lazy {model_type: _default_field_name_resolver_class(model_type) for model_type in _FIELD_NAME_RESOLVER_MODEL_TYPES}  [lazy]
    uses _FIELD_NAME_RESOLVER_MODEL_TYPES = (ModelType.ENUM, ModelType.PYDANTIC, ModelType.CLASS, ModelType.MSGSPEC)
ENUM_LITERAL_KEY: Final = '_enum_literal'
class EnumFieldNameResolver(FieldNameResolver)
    def __init__(self, **kwargs: Any) -> None
    @override
    def get_valid_name(self, name: str, excludes: set[str] | None=None, ignore_snake_case_field: bool=False, upper_camel: bool=False) -> str
FIELD_ORIGIN_KEY: Final = '_field_origin'
class FieldNameResolver
    FIELD_ASSIGNMENT_HELPER: ClassVar[str | None] = None
    capitalise_numbered_enum_members: bool = False
    def __init__(self, aliases: Mapping[str, str | list[str]] | None=None, snake_case_field: bool=False, empty_field_name: str | None=None, original_delimiter: str | None=None, special_field_name_prefix: str | None=None, remove_special_field_name_prefix: bool=False, capitalise_enum_members: bool=False, no_alias: bool=False, use_subclass_enum: bool=False, target_python_version: PythonVersion | None=None, capitalise_numbered_enum_members: bool=False) -> None
    def prepare_explicit_field_aliases(self, fields: Sequence[_AliasField], reference: Reference, *, output_names: tuple[str, ...]=()) -> None
    def explicit_field_alias(self, field: _AliasField, reference: Reference, *, output_names: tuple[str, ...]=()) -> tuple[str, str] | None
    @classmethod
    def validate_explicit_field_aliases(cls, fields: Sequence[_AliasField], *, final: bool, target_python_version: PythonVersion | None=None) -> None
    def get_valid_name(self, name: str, excludes: set[str] | None=None, ignore_snake_case_field: bool=False, upper_camel: bool=False) -> str
    def get_valid_field_name_and_alias(self, field_name: str, excludes: set[str] | None=None, path: list[str] | None=None, class_name: str | None=None, *, output_names: tuple[str, ...]=()) -> tuple[str, str | list[str] | None]
    self.target_python_version
    self.aliases
    self.empty_field_name
    self.snake_case_field
    self.original_delimiter
    self.special_field_name_prefix
    self.remove_special_field_name_prefix
    self.capitalise_enum_members
    self.no_alias
    self.use_subclass_enum
@record
class FieldOrigin
    kind: FieldOriginKind
    location: SchemaLocation | None
ID_PATTERN: Pattern[str] = re.compile('^#[^/].*')
ModelKey = NewType('ModelKey', int)
class ModelResolver
    DEFAULT_DUPLICATE_NAME_SUFFIX: ClassVar[dict[str, str]] = {'model': 'Model', 'enum': 'Enum'}
    def __init__(self, exclude_names: set[str] | None=None, duplicate_name_suffix: str | None=None, base_url: str | None=None, singular_name_suffix: str | None=None, aliases: Mapping[str, str | list[str]] | None=None, snake_case_field: bool=False, empty_field_name: str | None=None, custom_class_name_generator: Callable[[str], str] | None=None, base_path: Path | None=None, field_name_resolver_classes: dict[ModelType, type[FieldNameResolver]] | None=None, original_field_name_delimiter: str | None=None, special_field_name_prefix: str | None=None, remove_special_field_name_prefix: bool=False, capitalise_enum_members: bool=False, no_alias: bool=False, use_subclass_enum: bool=False, target_python_version: PythonVersion | None=None, remove_suffix_number: bool=False, parent_scoped_naming: bool=False, treat_dot_as_module: bool | None=None, strict_dotted_module_names: bool=False, naming_strategy: NamingStrategy | None=None, duplicate_name_suffix_map: dict[str, str] | None=None, class_name_prefix: str | None=None, class_name_suffix: str | None=None, class_name_affix_scope: ClassNameAffixScope | None=None, skip_affix_for_root: bool=False, model_name_map: Mapping[str, str] | None=None, default_value_overrides: Mapping[str, Any] | None=None, http_backend: HTTPBackend=HTTPBackend.AUTO, capitalise_numbered_enum_members: bool=False, singularize_last_word_of_item_names: bool=False, read_ids_with_empty_fragment: bool=False) -> None
    @override
    def __reduce_ex__(self, protocol: SupportsIndex, /) -> str | tuple[Any, ...]
    def __setstate__(self, state: dict[str, Any] | tuple[dict[str, Any], dict[str, Any]]) -> None
    @property
    def target_python_version(self) -> PythonVersion | None
    @property
    def field_name_resolvers(self) -> dict[ModelType, FieldNameResolver]
    @field_name_resolvers.setter
    def field_name_resolvers(self, resolvers: dict[ModelType, FieldNameResolver]) -> None
    def unmatched_model_name_keys(self) -> set[str]
    def apply_model_name_keys(self, keys: ModelNameKeys) -> None
    def record_model_names(self) -> None
    def reserved_names_in_module(self, prefix: str) -> dict[str, frozenset[str]]
    def reserve_names(self, names: Mapping[str, frozenset[str]]) -> None
    def reserved_for_another(self, name: str, path: str | None) -> bool
    @contextmanager
    def yielding_new_references(self) -> Generator[None, None, None]
    def is_yielding(self, reference: Reference) -> bool
    def settle_yielding_names(self) -> set[ModelKey]
    def refresh_reference_names(self) -> None
    @property
    def current_base_path(self) -> Path | None
    def set_current_base_path(self, base_path: Path | None) -> None
    @property
    def base_url(self) -> str | None
    def set_base_url(self, base_url: str | None) -> None
    @contextmanager
    def current_base_path_context(self, base_path: Path | None) -> Generator[None, None, None]
    @contextmanager
    def base_url_context(self, base_url: str | None) -> Generator[None, None, None]
    @property
    def current_root(self) -> Sequence[str]
    @property
    def current_document(self) -> str
    def set_current_root(self, current_root: Sequence[str]) -> None
    @contextmanager
    def current_root_context(self, current_root: Sequence[str]) -> Generator[None, None, None]
    def document_directory(self, document: str) -> Path
    @contextmanager
    def document_context(self, document: str, current_root: Sequence[str], directory: Path | None) -> Generator[None, None, None]
    @property
    def root_id(self) -> str | None
    @property
    def root_id_base_path(self) -> str | None
    def set_root_id(self, root_id: str | None) -> None
    def add_id(self, id_: str, path: Sequence[str]) -> None
    def empty_fragment_id_target(self, url: str) -> tuple[str, str] | None
    def registered_id(self, id_: str) -> str | None
    def resolve_ref(self, path: Sequence[str] | str) -> str
    def is_after_load(self, ref: str) -> bool
    @staticmethod
    def is_external_ref(ref: str) -> bool
    @staticmethod
    def is_external_root_ref(ref: str) -> bool
    @staticmethod
    @lru_cache(maxsize=4096)
    def join_path(path: tuple[str, ...]) -> str
    def ref_original_name(self, ref: str, path: str) -> str
    def add_ref(self, ref: str, resolved: bool=False) -> Reference
    def named_after(self, path: str, original_name: str) -> bool
    def name_past_parent(self, path: Sequence[str]) -> None
    def add(self, path: Sequence[str], original_name: str, *, class_name: bool=False, singular_name: bool=False, unique: bool=True, singular_name_suffix: str | None=None, loaded: bool=False, model_type: str='model', preserve_class_name: bool=False, yields: bool | None=None) -> Reference
    def get(self, path: Sequence[str] | str) -> Reference | None
    def delete(self, path: Sequence[str] | str) -> None
    def delete_names(self, names: AbstractSet[str]) -> None
    def default_class_name_generator(self, name: str) -> str
    def get_affixed_name(self, name: str, model_type: str='model') -> str
    def get_class_name(self, name: str, unique: bool=True, reserved_name: str | None=None, singular_name: bool=False, singular_name_suffix: str | None=None, model_type: str='model', is_root: bool=False, skip_affix: bool=False, preserve_name: bool=False, *, yields: bool=False, path: str | None=None) -> ClassName
    @classmethod
    def validate_name(cls, name: str, target_python_version: PythonVersion | None=None) -> bool
    def get_valid_field_name(self, name: str, excludes: set[str] | None=None, model_type: ModelType=ModelType.PYDANTIC) -> str
    def prepare_explicit_field_aliases(self, fields: Sequence[_AliasField], reference: Reference, model_type: ModelType) -> None
    def explicit_field_alias(self, field: _AliasField, reference: Reference, model_type: ModelType) -> tuple[str, str] | None
    @staticmethod
    def validate_explicit_field_aliases(fields: Sequence[_AliasField], model_type: ModelType, target_python_version: PythonVersion | None=None) -> None
    def get_valid_field_name_and_alias(self, field_name: str, excludes: set[str] | None=None, model_type: ModelType=ModelType.PYDANTIC, path: list[str] | None=None, class_name: str | None=None, *, output_names: tuple[str, ...]=()) -> tuple[str, str | list[str] | None]
    def output_names(self, path: str) -> tuple[str, ...]
    def class_scope(self, row: ClassKeyRow, model: ModelNames | str, path: str) -> ClassScope
    def resolve_default_value(self, field_name: str, original_default: Any, has_default: bool, class_name: str | None, *, output_names: tuple[str, ...]=()) -> tuple[Any, bool]
    self.references
    self.ids
    self.after_load_files
    self.exclude_names
    self.duplicate_name_suffix
    self.http_backend
    self.singular_name_suffix
    self.singularize_last_word_of_item_names
    self.read_ids_with_empty_fragment
    self.class_name_generator
    self.remove_suffix_number
    self.naming_strategy
    self.parent_scoped_naming
    self.treat_dot_as_module
    self.strict_dotted_module_names
    self.duplicate_name_suffix_map
    self.class_name_prefix
    self.class_name_suffix
    self.class_name_affix_scope
    self.skip_affix_for_root
    self.model_name_map
    self.assigned_yielding_names
    self.final_name_keys
    self.final_yielding_names
    self.yielding_name_changes
    self.model_name_record
    self.default_value_overrides
class ModelType(Enum)
    PYDANTIC = auto()
    ENUM = auto()
    CLASS = auto()
    MSGSPEC = auto()
MsgspecFieldNameResolver = lazy _default_field_name_resolver_class(ModelType.MSGSPEC)  [lazy]
NAME_REQUEST_KEY: Final = '_name_request'
class NameRequest(NamedTuple)
    original_name: str
    singular_name: bool = False
    singular_name_suffix: str | None = None
    model_type: str = 'model'
    preserve_class_name: bool = False
PydanticFieldNameResolver = lazy _default_field_name_resolver_class(ModelType.PYDANTIC)  [lazy]
PythonVersion = datamodel_code_generator.format.PythonVersion
class Reference(_BaseModel)
    path: str
    original_name: str = ''
    name: str
    duplicate_name: Optional[str] = None
    loaded: bool = True
    source: Optional[_ReferenceSource] = None
    children: list[ReferenceChild] = Field(default_factory=list)
    @model_validator(mode='before')
    def validate_original_name(cls, values: Any) -> Any
    model_config = ConfigDict(arbitrary_types_allowed=True, ignored_types=(cached_property,), revalidate_instances='never', defer_build=True)
    @override
    def model_post_init(self, context: Any, /) -> None
    @override
    def __setstate__(self, state: dict[Any, Any]) -> None
    @property
    def short_name(self) -> str
    def replace_children_references(self, new_reference: Reference) -> None
    def iter_data_model_children(self) -> Iterator[Any]
@runtime_checkable
class ReferenceChild(Protocol)
    @property
    def reference(self) -> Reference | None
SCHEMA_LOCATION_CONFLICT_KEY: Final = '_schema_location_conflict'
SCHEMA_LOCATION_KEY: Final = '_schema_location'
SCHEMA_PATH_KEY: Final = '_schema_path'
SINGULAR_NAME_SUFFIX: str = 'Item'
SPECIAL_PATH_MARKER: str = '#-datamodel-code-generator-#-'
SUBTYPE_REF_KEY: Final = '_subtype_ref'
@record
class SchemaLocation
    document: str
    tokens: tuple[str, ...]
    @property
    def pointer(self) -> str
    @override
    def __str__(self) -> str
    def child(self, *tokens: str) -> SchemaLocation
T = TypeVar('T')
TYPE_ORIGIN_KEY: Final = '_type_origin'
UNIQUE_ITEMS_KEY: Final = '_unique_items'
def binary_content_of(data_type: object) -> bool
@contextmanager
def context_variable(setter: Callable[[T], None], current_value: T, new_value: T) -> Generator[None, None, None]
def enum_literal_of(data_type: object) -> bool
def field_origin_of(field: object) -> FieldOrigin | None
def get_inferred_module_name(name: str, *, treat_dot_as_module: bool | None, strict_dotted_module_names: bool=False, target_python_version: PythonVersion | None=None) -> str
@lru_cache(maxsize=4096)
def get_last_word_singular_name(name: str, suffix: str=SINGULAR_NAME_SUFFIX) -> str
def get_relative_path(base_path: PurePath, target_path: PurePath) -> PurePath
@lru_cache(maxsize=4096)
def get_singular_name(name: str, suffix: str=SINGULAR_NAME_SUFFIX) -> str
def keep_node_records(copy: object, source: object) -> None
def location_of(reference: Reference) -> SchemaLocation | None
def model_key_of(reference: object) -> ModelKey
    # identity datamodel_code_generator._model_keys.model_key_of
def named_schema_location(location: SchemaLocation | None, reference: Reference) -> str
def schema_path_of(reference: Reference) -> str
@lru_cache(maxsize=4096)
def snake_to_upper_camel(word: str, delimiter: str='_', *, target_python_version: PythonVersion | None=None) -> str
def split_module_name(name: str, *, treat_dot_as_module: bool | None, strict_dotted_module_names: bool=False, target_python_version: PythonVersion | None=None) -> list[str] | None
def subtype_ref_of(data_type: object) -> str | None
def type_origin_of(data_type: object) -> SchemaLocation | None
def unique_items_of(data_type: object) -> bool
@contextmanager
def unmatched_model_name_keys_unreported() -> Generator[None, None, None]

[datamodel_code_generator.remote_lock]
@dataclass(frozen=True, slots=True)
class RemoteLockEntry
    request_sha256: str
    url: str
    body_sha256: str
class RemoteLockError(Exception)
@dataclass(slots=True)
class RemoteReferenceLock
    path: Path
    update: bool
    @classmethod
    def open(cls, path: Path, *, update: bool, locked: bool) -> RemoteReferenceLock
    def record_response(self, url: str, headers: Sequence[tuple[str, str]] | None, query_parameters: Sequence[tuple[str, str]] | None, body: bytes) -> None
    def stage(self, staging_directory: StagingDirectory | Path | None=None) -> StagedFile | Path | None
    def discard_stage(self) -> None
    def mark_committed(self) -> None
    def commit(self) -> None

[datamodel_code_generator.resources]

[datamodel_code_generator.types]
ANY = 'Any'
ARRAY_KEYWORDS: Final[frozenset[str]] = ITEM_COUNT_KEYWORDS | {'uniqueItems'}
    uses ITEM_COUNT_KEYWORDS: Final[frozenset[str]] = frozenset({'minItems', 'maxItems'})
CONSTRAINED_DECIMAL_DEFAULT_VALUE_DESCRIPTOR = DefaultValueDescriptor(option_kind=DefaultValueType.Decimal, recipe=DefaultValueRecipe.Decimal, constructor_import=IMPORT_DECIMAL, normalize_constraints=True)
DECIMAL_DEFAULT_VALUE_DESCRIPTOR = DefaultValueDescriptor(option_kind=DefaultValueType.Decimal, recipe=DefaultValueRecipe.Decimal, constructor_import=IMPORT_DECIMAL)
DICT = 'Dict'
DataModelFieldBase = typing.Any
class DataType(_BaseModel)
    model_config = ConfigDict(extra='forbid', revalidate_instances='never', defer_build=True)
    type: Optional[str] = None
    reference: Optional[Reference] = None
    data_types: list[DataType] = Field(default_factory=list)
    is_func: bool = False
    kwargs: Optional[dict[str, Any]] = None
    import_: Optional[Import] = None
    python_type: _BoundPythonTypeField | None = Field(default=None, exclude=True, repr=False)
    python_version: PythonVersion = PythonVersionMin
    is_optional: bool = False
    is_dict: bool = False
    is_list: bool = False
    is_set: bool = False
    is_frozen_set: bool = False
    is_mapping: bool = False
    is_sequence: bool = False
    is_tuple: bool = False
    tuple_item_count: int | None = Field(default=None, ge=0)
    given_container: Optional[GivenContainerName] = None
    is_custom_type: bool = False
    literals: list[Union[StrictBool, StrictInt, StrictStr]] = Field(default_factory=list)
    enum_member_literals: list[tuple[str, str]] = Field(default_factory=list)
    enum_member_tag_values: tuple[Union[StrictBool, StrictInt, StrictStr], ...] = ()
    use_standard_collections: bool = False
    use_generic_container: bool = False
    use_union_operator: bool = False
    preserve_union_member_order: bool = False
    alias: Optional[str] = None
    parent: Union[DataModelFieldBase, DataType, None] = None
    children: list[DataType] = Field(default_factory=list)
    strict: bool = False
    dict_key: Optional[DataType] = None
    treat_dot_as_module: bool = False
    use_serialize_as_any: bool = False
    discriminator: Optional[str] = None
    @override
    def __deepcopy__(self, memo: dict[int, Any] | None=None) -> DataType
    @classmethod
    def from_import(cls: builtins.type[DataTypeT], import_: Import, *, is_optional: bool=False, is_dict: bool=False, is_list: bool=False, is_set: bool=False, is_custom_type: bool=False, strict: bool=False, kwargs: dict[str, Any] | None=None) -> DataTypeT
    @property
    def unresolved_types(self) -> frozenset[str]
    def replace_reference(self, reference: Reference | None) -> None
    def register_reference(self) -> None
    def unregister_reference(self) -> None
    def remove_reference(self) -> None
    def swap_with(self, new_data_type: DataType) -> None
    @property
    def module_name(self) -> str | None
    @property
    def full_name(self) -> str
    @property
    def all_data_types(self) -> Iterator[DataType]
    def walk(self, visitor: Callable[[DataType], None], visited: set[int] | None=None) -> None
    def find_source(self, source_type: type[SourceT]) -> SourceT | None
    @property
    def all_imports(self) -> Iterator[Import]
    @property
    def runtime_expression_imports(self) -> tuple[Import, ...]
    @property
    def imports(self) -> Iterator[Import]
    def __init__(self, **values: Any) -> None
    @property
    def names_nullable_model(self) -> bool
    @property
    def names_none_alias(self) -> bool
    @property
    def adds_reference_null(self) -> bool
    @property
    def has_target_null(self) -> bool
    @property
    def admits_none(self) -> bool
    @property
    def items_admit_none(self) -> bool
    @property
    def type_hint(self) -> str
    @property
    def is_union(self) -> bool
    @property
    def base_type_hint(self) -> str
class DataTypeManager(ABC)
    HOSTNAME_REGEX: ClassVar[str] = '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]{0,61}[A-Za-z0-9])$'
    omit_redundant_constraints: bool = False
    read_length_keywords_by_type: bool = False
    read_msgspec_union_bounds_exactly: bool = False
    keep_string_keywords_beside_formats: bool = False
    use_decimal_in_field_forms: bool = False
    use_encoded_str_for_constrained_base64: bool = False
    use_msgspec_meta_for_map_keys: bool = False
    use_strict_str_for_base64: bool = False
    WRITES_ENCODED_STR: ClassVar[bool] = False
    FORMAT_KEYWORD_FORMS: ClassVar[Mapping[str, _applicability.FormatKeywordForm]] = _applicability.BASE_OUTPUT.format_keyword_forms
    CONSTRAINED_TYPE_CONSUMED_KEYS: ClassVar[dict[str, tuple[str, ...]]] = dict(_applicability.BASE_OUTPUT.zero_bound_classes)
    SUPPORTS_ANNOTATED_CONSTRAINTS: ClassVar[bool] = False
    ANNOTATED_CONSTRAINTS_CONTEXT: ClassVar[object | None] = None
    DEFAULT_VALUE_DESCRIPTORS: ClassVar[Mapping[tuple[str | None, str], DefaultValueDescriptor]] = MappingProxyType({})
    STRICT_DEFAULT_VALUE_RECIPES: ClassVar[Mapping[tuple[str | None, str], DefaultValueRecipe]] = MappingProxyType({})
    CONSTRAINT_KEYWORDS: ClassVar[Mapping[str, frozenset[str]]] = _applicability.BASE_OUTPUT.type_keywords
    KNOWN_TYPE_IMPORTS: ClassVar[tuple[ModuleType, ...]] = (generator_imports,)
    NUMBER_VALUE_TYPES: ClassVar[frozenset[str]] = _applicability.BASE_OUTPUT.number_value_types
    TARGET_NUMBER_KEYWORDS: ClassVar[Mapping[str, tuple[PydanticConstruct, frozenset[str]]]] = _applicability.BASE_OUTPUT.target_number_keywords
    ANNOTATION_UNIONS_TAKE_CONSTRAINTS: ClassVar[bool] = _applicability.BASE_OUTPUT.annotation_unions_take
    FIXED_TUPLES_TAKE_LENGTH: ClassVar[bool] = _applicability.BASE_OUTPUT.fixed_tuples_take_length
    LITERALS_TAKE_CONSTRAINTS: ClassVar[bool] = _applicability.BASE_OUTPUT.literals_take
    REFUSED_LITERAL_TYPES: ClassVar[tuple[type, ...]] = _applicability.BASE_OUTPUT.refused_literal_types
    MAPPING_CLASS_PATHS: ClassVar[frozenset[str]] = _applicability.BASE_OUTPUT.mapping_classes
    REGEX_ENGINES: ClassVar[frozenset[str]] = _applicability.BASE_OUTPUT.regex_engines
    WRITES_UNTYPED_VALUE_TYPE: ClassVar[bool] = True
    type_map: dict[Types, DataType]
    def __init__(self, python_version: PythonVersion=PythonVersionMin, use_standard_collections: bool=False, use_generic_container_types: bool=False, strict_types: Sequence[StrictTypes] | None=None, use_non_positive_negative_number_constrained_types: bool=False, use_decimal_for_multiple_of: bool=False, use_union_operator: bool=False, use_pendulum: bool=False, use_standard_primitive_types: bool=False, use_object_type: bool=False, target_datetime_class: DatetimeClassType | None=None, target_date_class: DateClassType | None=None, treat_dot_as_module: bool | None=None, use_serialize_as_any: bool=False) -> None
    def use_untyped_value_type(self, untyped_value_type: str | None) -> None
    def use_str_for_formats_msgspec_cannot_decode(self, *, enabled: bool) -> None
    def use_target_pydantic_version(self, target_pydantic_version: TargetPydanticVersion | None) -> None
    @abstractmethod
    def get_data_type(self, types: Types, **kwargs: Any) -> DataType
    def get_map_key_str_type(self, **kwargs: Any) -> DataType
    def constrained_string_member(self, member: DataTypeView, keywords: Mapping[str, Any], **options: Any) -> DataType | None
    @property
    def checks_map_key_patterns(self) -> bool
    def get_default_value_descriptor(self, data_type: DataType) -> DefaultValueDescriptor | None
    def get_strict_default_value_recipe(self, data_type: DataType) -> DefaultValueRecipe | None
    @staticmethod
    def copy_data_type(data_type: DataType) -> DataType
    @property
    def constraint_options(self) -> _applicability.ConstraintOptions
    def format_keyword_form(self, types: Types) -> _applicability.FormatKeywordForm | None
    def writes_format_as_text(self, types: Types) -> bool
    @property
    def encodes_constrained_base64(self) -> bool
    @classmethod
    def constraint_keywords(cls, data_type: DataType, target_version: tuple[int, int], *, number_values: bool=False, target_model_version: TargetPydanticVersion | str | None=None, counts_keys: bool=False) -> frozenset[str]
    @classmethod
    def member_constraint_keywords(cls, data_type: DataTypeView, target_version: tuple[int, int], model_of: Callable[[ReferenceView], ModelView | None], seen: frozenset[int]=frozenset()) -> frozenset[str] | None
    @classmethod
    def model_value_constraint_keywords(cls, data_type: DataType, target_version: tuple[int, int], model_of: Callable[[ReferenceView], ModelView | None], seen: frozenset[int]=frozenset()) -> frozenset[str] | None
    @classmethod
    def type_constraint_keywords(cls, path: str, target_version: tuple[int, int], *, number_values: bool=False, target_model_version: TargetPydanticVersion | str | None=None, counts_keys: bool=False) -> frozenset[str]
    def get_data_type_from_full_path(self, full_path: str, is_custom_type: bool) -> DataType
    self.python_version
    self.use_standard_collections
    self.use_generic_container_types
    self.strict_types
    self.use_non_positive_negative_number_constrained_types
    self.use_decimal_for_multiple_of
    self.use_union_operator
    self.use_pendulum
    self.use_object_type
    self.target_datetime_class
    self.target_date_class
    self.treat_dot_as_module
    self.use_serialize_as_any
    self.untyped_value
    self.data_type
DataTypeT = TypeVar('DataTypeT', bound=DataType)
@record
class DefaultValueDescriptor
    option_kind: DefaultValueType
    recipe: DefaultValueRecipe
    constructor_import: Import
    normalize_constraints: bool = False
class DefaultValueRecipe(Enum)
    Decimal = auto()
    Bytes = auto()
    Date = auto()
    Time = auto()
    DateTime = auto()
class EmptyDataType(DataType)
FROZEN_SET = 'FrozenSet'
FloatConstraint = Annotated[float, WrapValidator(_preserve_float_constraint_precision), PlainSerializer(_serialize_float_constraint)]
JSON_SCALAR_VALUE_TYPES: Mapping[str, tuple[type, ...]] = MappingProxyType({'str': (str,), 'int': (int,), 'float': (int, float), 'bool': (bool,), NONE: (type(None),)})
LENGTH_KEYWORDS: Final[frozenset[str]] = frozenset(LENGTH_KEYWORD_ORDER)
LIST = 'List'
LITERAL = 'Literal'
MAPPING = 'Mapping'
@runtime_checkable
class Modular(Protocol)
    @property
    def module_name(self) -> str
NONE = 'None'
NOT_REQUIRED = 'NotRequired'
NOT_REQUIRED_PREFIX = f"{NOT_REQUIRED}["
NUMBER_BOUND_KEYWORDS: Final[frozenset[str]] = NUMBER_KEYWORDS - {'multipleOf'}
NUMBER_KEYWORDS: Final[frozenset[str]] = frozenset(NUMBER_KEYWORD_ORDER)
@runtime_checkable
class Nullable(Protocol)
    @property
    def nullable(self) -> bool
OPTIONAL = 'Optional'
OPTIONAL_PREFIX = f"{OPTIONAL}["
READ_ONLY = 'ReadOnly'
READ_ONLY_PREFIX = f"{READ_ONLY}["
REQUIRED = 'Required'
REQUIRED_PREFIX = f"{REQUIRED}["
@final
@record
class RefLeaf
    node: DataType
SEQUENCE = 'Sequence'
SEQUENCE_KEYWORDS: Final[frozenset[str]] = ARRAY_KEYWORDS | LENGTH_KEYWORDS
SET = 'Set'
STANDARD_DICT = 'dict'
STANDARD_FROZEN_SET = 'frozenset'
STANDARD_LIST = 'list'
STANDARD_SET = 'set'
STANDARD_TUPLE = 'tuple'
STR = 'str'
STRING_KEYWORDS: Final[frozenset[str]] = frozenset(STRING_KEYWORD_ORDER)
    uses STRING_KEYWORD_ORDER: Final[tuple[str, ...]] = ('pattern', 'minLength', 'maxLength')
SourceT = TypeVar('SourceT')
StrictTypes = datamodel_code_generator.enums.StrictTypes  [lazy]
T = TypeVar('T')
TUPLE = 'Tuple'
TYPE_DEPENDENT_KEYWORDS: Final[frozenset[str]] = NUMBER_KEYWORDS | STRING_KEYWORDS | ARRAY_KEYWORDS
@final
@record
class TypeApply
    node: DataType
    form: TypeForm
    args: tuple[TypeExpr, ...] = ()
    container: str | None = None
    mapping: bool = False
    key: TypeExpr | None = None
    base: bool = False
    variadic: bool = False
TypeExpr: TypeAlias = TypeLeaf | RefLeaf | TypeApply
TypeForm: TypeAlias = Literal['written', 'base', 'single', 'union', 'tuple', 'literal']
@final
@record
class TypeLeaf
    code: str = ''
    node: DataType | None = None
    base: bool = False
class Types(Enum)
    integer = auto()
    int32 = auto()
    int64 = auto()
    number = auto()
    float = auto()
    double = auto()
    decimal = auto()
    time = auto()
    string = auto()
    byte = auto()
    binary = auto()
    date = auto()
    date_time = auto()
    date_time_local = auto()
    time_local = auto()
    timedelta = auto()
    password = auto()
    path = auto()
    email = auto()
    uuid = auto()
    uuid1 = auto()
    uuid2 = auto()
    uuid3 = auto()
    uuid4 = auto()
    uuid5 = auto()
    ulid = auto()
    uri = auto()
    hostname = auto()
    ipv4 = auto()
    ipv4_network = auto()
    ipv6 = auto()
    ipv6_network = auto()
    boolean = auto()
    object = auto()
    null = auto()
    array = auto()
    any = auto()
    uuid6 = auto()
    uuid7 = auto()
    uuid8 = auto()
UNION = 'Union'
UNION_DELIMITER = ', '
UNION_OPERATOR_DELIMITER = ' | '
UNION_OPERATOR_PATTERN: Pattern[str] = re.compile('\\s*\\|\\s*')
UNION_PATTERN: Pattern[str] = re.compile('\\s*,\\s*')
UNION_PREFIX = f"{UNION}["
class UnionIntFloat
    def __init__(self, value: float) -> None
    def __int__(self) -> int
    def __float__(self) -> float
    @classmethod
    def __get_pydantic_core_schema__(cls, _source_type: Any, _handler: GetCoreSchemaHandler) -> core_schema.CoreSchema
    @classmethod
    def validate(cls, v: Any) -> UnionIntFloat
    self.value
@final
class UntypedValue(NamedTuple)
    name: str
    import_: Import | None
    @classmethod
    def from_option(cls, value: str) -> UntypedValue
def build_union(data_type: type[DataType], members: Sequence[DataType], row: UnionRow='declared', /, *, nullable: bool=False, roles: Sequence[MemberRole]=(), **values: Any) -> DataType
def chain_as_tuple(*iterables: Iterable[T]) -> tuple[T, ...]
def extract_qualified_names(type_str: str) -> list[str]
@lru_cache(maxsize=4096)
def get_optional_type(type_: str, use_union_operator: bool) -> str
def get_subscript_args(type_str: str) -> list[str]
def get_type_base_name(type_str: str) -> str
def is_data_model_field(obj: object) -> TypeIs[DataModelFieldBase]
@lru_cache(maxsize=1024)
def is_python_type_annotation(type_str: str) -> bool
def merge_normalized_constraint(constraints: dict[str, Any], key: str, value: Any) -> None
def normalize_integer_constraint(constraint: str, value: Any) -> tuple[str, Any] | None
def normalize_integer_constraints(constraints: dict[str, Any]) -> dict[str, Any]
def reference_names_nullable(reference: Reference | None) -> bool
def render_type_expr(expr: TypeExpr, /) -> str
def strict_number_constraint(output: _applicability.OutputKeywords, constraint: str, value: Any, *, is_float_type: bool, is_int_type: bool) -> tuple[str, Any] | None
def type_expr_of(data_type: DataType, *, base: bool=False) -> TypeExpr
def union_members(data_type: DataType) -> Sequence[DataType]
def untyped_value_data_type(cls: type[DataTypeT], untyped_value: UntypedValue | None) -> DataTypeT
def writes_object_for_untyped_items(use_object_type: bool, untyped_value: UntypedValue | None) -> bool
def written_type_name(data_type: DataType) -> str | None
def written_union_members(data_types: Iterable[DataType]) -> Iterator[DataType]

[datamodel_code_generator.util]
BaseModel = lazy _get_base_model_class()  [lazy]
    | from pydantic import BaseModel as _PydanticBaseModel
    | from pydantic import ConfigDict as _ConfigDict
    | class _BaseModelV2(_PydanticBaseModel)
    |     model_config = _ConfigDict(strict=False, defer_build=True)
    | return _BaseModelV2
SafeLoader = lazy get_safe_loader()  [lazy]
    | try:
    |     from yaml import CSafeLoader
    | except ImportError:
    |     return get_pure_safe_loader()
    | return _custom_safe_loader(CSafeLoader)
YamlBackend = Literal['ryaml', 'pyyaml']
@record
class YamlStringKeywords
    scalars: frozenset[str]
    lists: frozenset[str]
    maps: frozenset[str]
@lru_cache
def camel_to_snake(string: str, target_python_version: PythonVersion | None=None) -> str
def create_module_getattr(module_name: str, lazy_imports: dict[str, tuple[str, str]]) -> Callable[[str], Any]
@lru_cache(maxsize=1)
def get_pure_safe_loader() -> type
@lru_cache(maxsize=1)
def get_safe_loader() -> type
@lru_cache(maxsize=1)
def get_yaml_backend() -> YamlBackend
@lru_cache(maxsize=1)
def get_yaml_parse_errors() -> tuple[type[Exception], ...]
def last_camel_word(string: str) -> str
def load_toml(path: Path) -> dict[str, Any]
def note_yaml_numbers_held(count: int) -> None
def read_yaml_text(read: Callable[..., _T], text: str) -> _T
def record_watch_dependency(path: Path) -> None
def reject_unsupported_yaml_tags(text: str) -> None
def settle_yaml_numbers(data: _T) -> _T
def warn_deprecated_yaml_bools(details: Iterable[str]) -> None
def warn_yaml_deprecated_bool_values(text: str) -> None
@contextlib.contextmanager
def yaml_deprecated_bools_recorded() -> Generator[list[str]]
@contextlib.contextmanager
def yaml_number_reading(*, as_text: bool) -> Generator[None]
def yaml_number_reading_key() -> str
def yaml_numbers_held() -> int
@contextlib.contextmanager
def yaml_numbers_read_where_strings_required(strings: YamlStringKeywords) -> Generator[None]

[datamodel_code_generator.validators]
class ModelValidators(BaseModel)
    model_config = ConfigDict(defer_build=True)
    validators: list[ValidatorDefinition]
class ValidatorDefinition(BaseModel)
    model_config = ConfigDict(defer_build=True, revalidate_instances='always')
    field: str | None = None
    fields: list[str] | None = None
    function: str
    mode: ValidatorMode = ValidatorMode.AFTER
    @field_validator('field')
    @classmethod
    def validate_field(cls, value: str | None, info: ValidationInfo) -> str | None
    @field_validator('fields')
    @classmethod
    def validate_fields(cls, value: list[str] | None, info: ValidationInfo) -> list[str] | None
    @field_validator('function')
    @classmethod
    def validate_function(cls, value: str, info: ValidationInfo) -> str
    @field_validator('mode', mode='before')
    @classmethod
    def validate_mode(cls, value: Any) -> Any
class ValidatorMode(str, Enum)
    BEFORE = 'before'
    AFTER = 'after'
    WRAP = 'wrap'
    PLAIN = 'plain'
class ValidatorsConfig(RootModel[dict[str, ModelValidators]])
    model_config = ConfigDict(defer_build=True)
def format_validation_error(error: ValidationError) -> str
def normalize_validators(validators: Any, *, target: PythonVersion | None=None) -> list[dict[str, Any]]

[datamodel_code_generator.watch]
def watch_and_regenerate(config: Config, *, dependencies: WatchDependencies | None=None, regenerate: Callable[[], Exit], watch_path: Path | None=None, watch_delay: float | None=None) -> Exit

[datamodel_code_generator.watch_dependencies]
@dataclass(slots=True)
class WatchDependencies(_Weakrefable)
    def __post_init__(self) -> None
    def enable_polling_fingerprints(self) -> None
    def configure(self, config: _WatchConfig, *, config_values: Mapping[str, Any]) -> None
    def configure_many(self, configs: Iterable[tuple[_WatchConfig, Mapping[str, Any], Path]]) -> None
    def begin_raw_attempt(self) -> None
    def add_recovery_file(self, path: Path) -> None
    def stage_raw_config(self, config_values: Mapping[str, Any]) -> None
    @contextmanager
    def generation(self) -> Generator[_CollectedGeneration]
    def add_file(self, path: Path | None) -> None
    def add_directory(self, path: Path | None) -> None
    def exclude_file(self, path: Path) -> None
    def record_file(self, path: Path) -> None
    @property
    def files(self) -> frozenset[Path]
    @property
    def directories(self) -> frozenset[Path]
    @property
    def output(self) -> Path | None
    @property
    def outputs(self) -> frozenset[Path]
    def watch_roots(self) -> tuple[Path, ...]
    def refresh_watch_roots(self) -> None
    def includes(self, path: Path) -> bool
    def accepts_event(self, path: Path, *, accept_directory_events: bool=False) -> bool
def collector_identity() -> object | None
def collector_is_active() -> bool
def record_local_dependency(path: Path) -> None
def record_module_dependency(module: object) -> Path | None

[definitions no public name reaches]
# named by the signature of datamodel_code_generator.generate
class GenerateConfigDict(BaseGenerateConfig, closed=True)
    input_filename: NotRequired[str | None]
    extra_template_data: NotRequired[defaultdict[str, dict[str, Any]] | None]
    validators: NotRequired[Mapping[str, ModelValidators] | None]
    aliases: NotRequired[Mapping[str, str | list[str]] | None]
    serialization_aliases: NotRequired[Mapping[str, str] | None]
    command_line: NotRequired[str | None]
    apply_default_values_for_required_fields: NotRequired[bool]
    force_optional_for_required_fields: NotRequired[bool]
    strict_types: NotRequired[Sequence[StrictTypes] | None]
    custom_class_name_generator: NotRequired[Callable[[str], str] | None]
    openapi_scopes: NotRequired[list[OpenAPIScope] | None]
    graphql_scopes: NotRequired[list[GraphQLScope] | None]
    custom_formatters_kwargs: NotRequired[dict[str, Any] | None]
    settings_path: NotRequired[Path | None]
    default_value_overrides: NotRequired[Mapping[str, Any] | None]
# named by the signature of datamodel_code_generator.input_model_result.LoadedInputModelSchema
class PythonTypeExpr
    __slots__ = ()
    def __deepcopy__(self, _memo: dict[int, object]) -> PythonTypeExpr
# a base of datamodel_code_generator.model.base.ConstraintsBase
class _BaseModel(BaseModel)
    def __init__(self, **values: Any) -> None
    def dict(self, *, include: AbstractSet[int | str] | Mapping[int | str, Any] | None=None, exclude: AbstractSet[int | str] | Mapping[int | str, Any] | None=None, by_alias: bool=False, exclude_unset: bool=False, exclude_defaults: bool=False, exclude_none: bool=False) -> dict[str, Any]
# named by the signature of datamodel_code_generator.model.base.DataModel
ModelForm: TypeAlias = Literal['alias', 'root', 'enum', 'object']
# named by the signature of datamodel_code_generator.model.base.DataModel
SetItemHash: TypeAlias = Literal['value', 'identity', 'never', 'alias']
# named by the signature of datamodel_code_generator.model.base.DataModel
class _RenderedDataModelField
    def __init__(self, field: DataModelFieldBase, docstring: str) -> None
    def __getattr__(self, name: str) -> Any
# named by the signature of datamodel_code_generator.model.base.c3_merge
_T = TypeVar('_T')
# named by the signature of datamodel_code_generator.model.base.host_identifiers
class HostIdentifiers
    __slots__ = ('_given_back', '_lent', '_pools', '_used', 'source')
    def __init__(self, source: str, unknown: Iterable[str]) -> None
    def restore_text(self, text: str) -> str
    def restore_name(self, name: str) -> str
    def parsed_name(self, name: str) -> str
    self.source
# named by the signature of datamodel_code_generator.model.base.live_render_plan
@final
@record
class FieldRenderPlan
    annotation_form: AnnotationForm
    call: CallPlan | None
    default: FieldDefault
    has_default_factory_in_field: bool
    omitted: tuple[Omitted, ...]
    symbol_imports: tuple[tuple[Import, Why], ...]
    why: Why
    annotated_call: CallPlan | None = None
    bare_default: bool = False
    qualifiers: tuple[tuple[str, Why], ...] = ()
    written_type: object = None
    def written_items(self) -> frozenset[str]
# a base of datamodel_code_generator.model.dataclass.DataClass
class _DataclassReuseMixin
    def has_keyword_only_definition(self) -> bool
# a base of datamodel_code_generator.model.dataclass.DataModelField
class _FieldCallWriter
    @override
    def __str__(self) -> str
# a base of datamodel_code_generator.model.enum.EnumMemberValue
class _StructuredEnumMemberValue
    __slots__ = ()
# named by the signature of datamodel_code_generator.model.enum.enum_class_base
EnumBase: TypeAlias = Literal['Enum', 'IntEnum', 'StrEnum']
# named by the signature of datamodel_code_generator.model.output.OutputModelContext
class _TypeHintSource(Protocol)
    @property
    def type_hint(self) -> str
# a base of datamodel_code_generator.model.pydantic_base.PatternConstraints
class Constraints(ConstraintsBase)
    # identity datamodel_code_generator.model.pydantic_base.Constraints
    gt: Optional[UnionIntFloat] = Field(None, alias='exclusiveMinimum')
    ge: Optional[UnionIntFloat] = Field(None, alias='minimum')
    lt: Optional[UnionIntFloat] = Field(None, alias='exclusiveMaximum')
    le: Optional[UnionIntFloat] = Field(None, alias='maximum')
    multiple_of: Optional[float] = _MULTIPLE_OF_FIELD
        uses _MULTIPLE_OF_FIELD = Field(None, alias='multipleOf')
    min_items: Optional[int] = Field(None, alias='minItems')
    max_items: Optional[int] = Field(None, alias='maxItems')
    min_length: Optional[int] = Field(None, alias='minLength')
    max_length: Optional[int] = Field(None, alias='maxLength')
    regex: Optional[str] = Field(None, alias='pattern')
# a base of datamodel_code_generator.model.pydantic_v2.base_model.BaseModel
class _PydanticV2Model(DataModel)
    WRITES_CLOSED_ADDITIONAL_PROPERTIES: ClassVar[bool] = True
    @override
    def assigns_forward_reference_field(self, field: DataModelFieldBase, positions: Mapping[str, int], index: int) -> bool
    @classmethod
    @override
    def finalize_type_alias_users(cls, models: list[DataModel]) -> None
    def reads_json_bytes_as_text(self) -> bool
    def applied_config(self) -> tuple[dict[str, str], frozenset[str] | None]
# a base of datamodel_code_generator.model.pydantic_v2.types.AnnotatedConstraintDataType
class _RuntimeAnnotatedDataType(PydanticV2DataType)
    @property
    @override
    def imports(self) -> Iterator[Import]
# a base of datamodel_code_generator.model.scalar.DataTypeScalar
class _DataTypeScalarBase(TypeAliasBase)
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
# a base of datamodel_code_generator.model.union.DataTypeUnion
class _DataTypeUnionBase(DataModel)
    FORMAT_DESCRIPTION_AS_DOCSTRING: ClassVar[bool] = False
    def __init__(self, *, reference: Reference, fields: list[DataModelFieldBase], decorators: list[str] | None=None, base_classes: list[Reference] | None=None, custom_base_class: str | list[str] | None=None, custom_template_dir: Path | None=None, extra_template_data: defaultdict[str, dict[str, Any]] | None=None, methods: list[str] | None=None, path: Path | None=None, description: str | None=None, default: Any=UNDEFINED, nullable: bool=False, keyword_only: bool=False, treat_dot_as_module: bool | None=None) -> None
# named by the signature of datamodel_code_generator.parser.DefaultPutDict
TV = TypeVar('TV')
# named by the signature of datamodel_code_generator.parser.asyncapi.AsyncAPIParser
class AsyncAPIParserConfigDict(JSONSchemaParserConfigDict, closed=True)
    openapi_scopes: NotRequired[list[OpenAPIScope] | None]
    include_path_parameters: NotRequired[bool]
    use_status_code_in_response_name: NotRequired[bool]
    keep_first_character_of_path_keys: NotRequired[bool]
    keep_content_parameter_refs: NotRequired[bool]
    skip_path_extension_keys: NotRequired[bool]
    use_enum_field_as_literal_in_operations: NotRequired[bool]
    openapi_include_paths: NotRequired[list[str] | None]
    openapi_include_info_version: NotRequired[bool]
    openapi_as_definitions: NotRequired[Sequence[OpenAPIAsDefinitions]]
    openapi_version: NotRequired[OpenAPIVersion | None]
    asyncapi_version: NotRequired[AsyncAPIVersion | None]
    name_converted_payloads_by_message: NotRequired[bool]
    merge_message_trait_headers: NotRequired[bool]
# named by the signature of datamodel_code_generator.parser.avro.AvroParser
class AvroParserConfigDict(JSONSchemaParserConfigDict, closed=True)
# named by the signature of datamodel_code_generator.parser.base.Parser
class ParserConfigDict(TypedDict)
    data_model_type: NotRequired[type[DataModel]]
    data_model_root_type: NotRequired[type[DataModel]]
    data_type_manager_type: NotRequired[type[DataTypeManager]]
    data_model_field_type: NotRequired[type[DataModelFieldBase]]
    base_class: NotRequired[str | None]
    base_class_map: NotRequired[dict[str, str | list[str]] | None]
    model_name_map: NotRequired[dict[str, str] | None]
    additional_imports: NotRequired[list[str] | None]
    class_decorators: NotRequired[list[str] | None]
    custom_template_dir: NotRequired[Path | None]
    extra_template_data: NotRequired[defaultdict[str, dict[str, Any]] | None]
    validators: NotRequired[Mapping[str, ModelValidators] | None]
    generate_schema_validators: NotRequired[bool]
    check_pattern_maps_strictly: NotRequired[bool]
    schema_validator_base_class_name: NotRequired[str | None]
    target_python_version: NotRequired[PythonVersion]
    dump_resolve_reference_action: NotRequired[Callable[[Iterable[str]], str] | None]
    validation: NotRequired[bool]
    field_constraints: NotRequired[bool]
    alias_generator: NotRequired[AliasGenerator | None]
    pin_aliases_with_alias_generator: NotRequired[bool]
    snake_case_field: NotRequired[bool]
    strip_default_none: NotRequired[bool]
    aliases: NotRequired[Mapping[str, str | list[str]] | None]
    serialization_aliases: NotRequired[Mapping[str, str] | None]
    allow_population_by_field_name: NotRequired[bool]
    apply_default_values_for_required_fields: NotRequired[bool]
    allow_extra_fields: NotRequired[bool]
    extra_fields: NotRequired[str | None]
    use_generic_base_class: NotRequired[bool]
    keep_bases_beside_generic_base_class: NotRequired[bool]
    force_optional_for_required_fields: NotRequired[bool]
    class_name: NotRequired[str | None]
    allow_leading_underscore_class_name: NotRequired[bool]
    class_name_prefix: NotRequired[str | None]
    class_name_suffix: NotRequired[str | None]
    class_name_affix_scope: NotRequired[ClassNameAffixScope]
    use_standard_collections: NotRequired[bool]
    base_path: NotRequired[Path | None]
    use_schema_description: NotRequired[bool]
    use_field_description: NotRequired[bool]
    use_field_description_example: NotRequired[bool]
    use_attribute_docstrings: NotRequired[bool]
    use_inline_field_description: NotRequired[bool]
    use_single_line_docstring: NotRequired[bool]
    use_default_kwarg: NotRequired[bool]
    apply_field_options_to_every_field: NotRequired[bool]
    deserialize_default_values: NotRequired[Sequence[DefaultValueType]]
    use_missing_sentinel: NotRequired[bool]
    reuse_model: NotRequired[bool]
    reuse_scope: NotRequired[ReuseScope | None]
    shared_module_name: NotRequired[str]
    encoding: NotRequired[str]
    enum_field_as_literal: NotRequired[LiteralType | None]
    enum_field_as_literal_map: NotRequired[dict[str, str] | None]
    open_enums: NotRequired[OpenEnums | None]
    open_enum_base_class_map: NotRequired[dict[str, str] | None]
    ignore_enum_constraints: NotRequired[bool]
    set_default_enum_member: NotRequired[bool]
    use_subclass_enum: NotRequired[bool]
    use_specialized_enum: NotRequired[bool]
    strict_nullable: NotRequired[bool]
    omit_redundant_reference_null: NotRequired[bool]
    keep_reference_null_on_merged_models: NotRequired[bool]
    use_generic_container_types: NotRequired[bool]
    enable_faux_immutability: NotRequired[bool]
    remote_text_cache: NotRequired[DefaultPutDict[str, str] | None]
    disable_appending_item_suffix: NotRequired[bool]
    singularize_last_word_of_item_names: NotRequired[bool]
    strict_types: NotRequired[Sequence[StrictTypes] | None]
    empty_enum_field_name: NotRequired[str | None]
    custom_class_name_generator: NotRequired[Callable[[str], str] | None]
    field_extra_keys: NotRequired[set[str] | None]
    field_include_all_keys: NotRequired[bool]
    field_extra_keys_without_x_prefix: NotRequired[set[str] | None]
    model_extra_keys: NotRequired[set[str] | None]
    model_extra_keys_without_x_prefix: NotRequired[set[str] | None]
    wrap_string_literal: NotRequired[bool | None]
    use_title_as_name: NotRequired[bool]
    infer_union_variant_names: NotRequired[bool]
    use_tag_as_union_variant_name: NotRequired[bool]
    infer_union_discriminators: NotRequired[bool]
    name_allof_union_members_after_branches: NotRequired[bool]
    use_operation_id_as_name: NotRequired[bool]
    use_unique_items_as_set: NotRequired[bool]
    use_unique_items_as_set_by_value: NotRequired[bool]
    read_set_item_fields_in_class_order: NotRequired[bool]
    use_tuple_for_fixed_items: NotRequired[bool]
    use_tuple_for_closed_arrays: NotRequired[bool]
    use_tuple_for_fixed_length_arrays: NotRequired[bool]
    use_total_false_for_typed_dict: NotRequired[bool]
    use_closed_typed_dict: NotRequired[bool]
    allof_merge_mode: NotRequired[AllOfMergeMode]
    allof_class_hierarchy: NotRequired[AllOfClassHierarchy]
    allow_remote_refs: NotRequired[bool | None]
    strict_refs: NotRequired[bool]
    untrusted_input: NotRequired[bool]
    allow_private_network: NotRequired[bool]
    http_backend: NotRequired[HTTPBackend]
    http_headers: NotRequired[Sequence[tuple[str, str]] | None]
    http_local_ref_path: NotRequired[Path | None]
    http_ignore_tls: NotRequired[bool]
    http_timeout: NotRequired[float | None]
    use_annotated: NotRequired[bool]
    use_serialize_as_any: NotRequired[bool]
    use_serialize_as_any_for_every_subclass: NotRequired[bool]
    use_non_positive_negative_number_constrained_types: NotRequired[bool]
    use_decimal_for_multiple_of: NotRequired[bool]
    use_decimal_in_field_forms: NotRequired[bool]
    use_encoded_str_for_constrained_base64: NotRequired[bool]
    use_strict_str_for_base64: NotRequired[bool]
    use_msgspec_meta_for_map_keys: NotRequired[bool]
    merge_msgspec_str_like_union_members: NotRequired[bool]
    omit_redundant_constraints: NotRequired[bool]
    read_length_keywords_by_type: NotRequired[bool]
    read_object_keywords_by_type: NotRequired[bool]
    read_msgspec_union_bounds_exactly: NotRequired[bool]
    keep_string_keywords_beside_formats: NotRequired[bool]
    use_site_models_for_constrained_refs: NotRequired[bool]
    use_one_model_per_ref_site: NotRequired[bool]
    original_field_name_delimiter: NotRequired[str | None]
    use_double_quotes: NotRequired[bool]
    use_union_operator: NotRequired[bool]
    allow_responses_without_content: NotRequired[bool]
    collapse_root_models: NotRequired[bool]
    collapse_root_models_name_strategy: NotRequired[CollapseRootModelsNameStrategy | None]
    collapse_shared_parent_wrappers: NotRequired[bool]
    keep_constrained_root_models_in_every_container: NotRequired[bool]
    keep_enum_literal_aliases: NotRequired[bool]
    keep_reference_null_on_collapsed_root_models: NotRequired[bool]
    keep_shared_members_on_collapsed_root_models: NotRequired[bool]
    collapse_constrained_root_models_as_annotated: NotRequired[bool]
    remove_unused_models_beside_type_overrides: NotRequired[bool]
    keep_self_referencing_array_items: NotRequired[bool]
    keep_defaults_of_inherited_required_fields: NotRequired[bool]
    omit_incomplete_model_defaults: NotRequired[bool]
    collapse_reuse_models: NotRequired[bool]
    skip_root_model: NotRequired[bool]
    use_root_model_sequence_interface: NotRequired[bool]
    use_type_alias: NotRequired[bool]
    use_validate_default_for_root_model_type_aliases: NotRequired[bool]
    use_plain_alias_for_recursive_models: NotRequired[bool]
    special_field_name_prefix: NotRequired[str | None]
    remove_special_field_name_prefix: NotRequired[bool]
    capitalise_enum_members: NotRequired[bool]
    capitalise_numbered_enum_members: NotRequired[bool]
    keep_model_order: NotRequired[bool]
    order_constructor_fields_by: NotRequired[Sequence[ConstructorFieldOrder]]
    use_one_literal_as_default: NotRequired[bool]
    use_enum_values_in_discriminator: NotRequired[bool]
    merge_shared_variant_tags: NotRequired[bool]
    use_unmapped_variant_tag_values: NotRequired[bool]
    read_mapping_keys_by_schema_tag_type: NotRequired[bool]
    use_root_types_for_mixed_union_map_keys: NotRequired[bool]
    rename_redeclared_fields_hiding_types: NotRequired[bool]
    rename_fields_hiding_types_from_type_checkers: NotRequired[bool]
    read_schema_version_per_document: NotRequired[bool]
    read_escaped_ref_pointers: NotRequired[bool]
    read_dynamic_anchors_in_document_order: NotRequired[bool]
    read_ids_with_empty_fragment: NotRequired[bool]
    read_refs_in_their_resources: NotRequired[bool]
    read_single_allof_refs_in_their_documents: NotRequired[bool]
    read_ref_siblings_in_closed_allof_members: NotRequired[bool]
    ignore_ref_siblings_by_schema_version: NotRequired[bool]
    read_yaml_1_1_numbers_as_text: NotRequired[bool]
    use_msgspec_tagged_unions: NotRequired[bool]
    tag_msgspec_by_payload_name: NotRequired[bool]
    use_msgspec_nullable_enum_alias: NotRequired[bool]
    use_msgspec_forbid_unknown_fields: NotRequired[bool]
    use_typed_nullable_map_values: NotRequired[bool]
    use_typed_map_values_beside_other_types: NotRequired[bool]
    use_single_dict_for_object_maps: NotRequired[bool]
    read_unevaluated_properties: NotRequired[bool]
    read_kubernetes_extensions: NotRequired[bool]
    use_single_value_enum_as_const: NotRequired[bool]
    read_const_beside_enum: NotRequired[bool]
    read_format_as_annotation: NotRequired[bool]
    read_uuid6_uuid7_uuid8_formats: NotRequired[bool]
    filter_literal_values: NotRequired[bool]
    intersect_allof_keywords: NotRequired[bool]
    intersect_combined_schema_keywords: NotRequired[bool]
    distribute_allof_over_unions: NotRequired[bool]
    intersect_merged_allof_members: NotRequired[bool]
    read_allof_parents_as_their_models: NotRequired[bool]
    read_allof_parents_in_mro_order: NotRequired[bool]
    read_inherited_property_schemas_in_mro_order: NotRequired[bool]
    read_nullable_beside_type_list: NotRequired[bool]
    keep_null_of_nullable_items: NotRequired[bool]
    keep_field_defaults_off_branch_roots: NotRequired[bool]
    keep_enum_member_values: NotRequired[bool]
    known_third_party: NotRequired[list[str] | None]
    custom_formatters: NotRequired[list[str] | None]
    custom_formatters_kwargs: NotRequired[dict[str, Any] | None]
    use_pendulum: NotRequired[bool]
    use_standard_primitive_types: NotRequired[bool]
    use_str_for_formats_msgspec_cannot_decode: NotRequired[bool]
    use_object_type: NotRequired[bool]
    untyped_value_type: NotRequired[str | None]
    http_query_parameters: NotRequired[Sequence[tuple[str, str]] | None]
    treat_dot_as_module: NotRequired[bool | None]
    strict_dotted_module_names: NotRequired[bool]
    rename_submodules_hidden_by_classes: NotRequired[bool]
    use_exact_imports: NotRequired[bool]
    use_type_checking_imports: NotRequired[bool | None]
    default_field_extras: NotRequired[dict[str, Any] | None]
    target_datetime_class: NotRequired[DatetimeClassType | None]
    target_date_class: NotRequired[DateClassType | None]
    keyword_only: NotRequired[bool]
    frozen_dataclasses: NotRequired[bool]
    no_alias: NotRequired[bool]
    use_serialization_alias: NotRequired[bool]
    use_frozen_field: NotRequired[bool]
    use_default_factory_for_optional_nested_models: NotRequired[bool]
    formatters: NotRequired[list[Formatter] | None]
    builtin_format_line_length: NotRequired[int | None]
    defer_formatting: NotRequired[bool]
    parent_scoped_naming: NotRequired[bool]
    naming_strategy: NotRequired[NamingStrategy | None]
    duplicate_name_suffix: NotRequired[dict[str, str] | None]
    use_duplicate_name_suffix_for_every_collision: NotRequired[bool]
    dataclass_arguments: NotRequired[DataclassArguments | None]
    keep_false_dataclass_arguments: NotRequired[bool]
    import_overrides: NotRequired[dict[str, str] | None]
    type_mappings: NotRequired[list[str] | None]
    type_overrides: NotRequired[dict[str, str] | None]
    type_overrides_replace_whole_type: NotRequired[bool]
    use_x_python_type_as_written: NotRequired[bool]
    use_x_python_import_for_every_ref: NotRequired[bool]
    use_bytes_for_content_media_type: NotRequired[bool]
    use_bounds_for_float_const: NotRequired[bool]
    read_only_write_only_model_type: NotRequired[ReadOnlyWriteOnlyModelType | None]
    dedupe_request_response_variants: NotRequired[bool]
    dedupe_numbered_request_response_variants: NotRequired[bool]
    field_type_collision_strategy: NotRequired[FieldTypeCollisionStrategy | None]
    target_pydantic_version: NotRequired[TargetPydanticVersion | None]
    default_value_overrides: NotRequired[Mapping[str, Any] | None]
    external_ref_mapping: NotRequired[dict[str, str] | None]
# named by the signature of datamodel_code_generator.parser.base.PydanticFloors
@final
@record
class PydanticFloor
    minimum: str
    target: str
    constructs: tuple[tuple[PydanticConstruct, tuple[str, ...]], ...]
# named by the signature of datamodel_code_generator.parser.base.placeholder_identity
class FieldIdentity(TypedDict, total=False)
    name: str | None
    original_name: str | None
    alias: str | None
    validation_aliases: list[str] | None
    serialization_alias: str | None
    use_serialization_alias: bool
# named by the signature of datamodel_code_generator.parser.base.sort_data_models
SortedDataModels = dict[ModelKey, DataModel]
# named by the signature of datamodel_code_generator.parser.base.stdout_fingerprint
Key: TypeAlias = 'tuple[Hashable, ...]'
# named by the signature of datamodel_code_generator.parser.base.to_hashable
@runtime_checkable
class HashableComparable(Hashable, Protocol)
    def __lt__(self, value: Any, /) -> bool
    def __le__(self, value: Any, /) -> bool
    def __gt__(self, value: Any, /) -> bool
    def __ge__(self, value: Any, /) -> bool
# named by the signature of datamodel_code_generator.parser.generation.GenerationIndex
@final
@record(eq=False)
class ReferenceGraph
    snapshot: GraphSnapshot
    nodes: tuple[ModelKey, ...]
    edges: Mapping[EdgeKind, Mapping[ModelKey, tuple[ModelKey, ...]]]
    def targets(self, key: ModelKey, kinds: Collection[EdgeKind]) -> frozenset[ModelKey]
    def ordered_targets(self, key: ModelKey, kind: EdgeKind) -> tuple[ModelKey, ...]
    def reached(self, key: ModelKey, kinds: Collection[EdgeKind]) -> frozenset[ModelKey]
    def acyclic_order(self, kinds: Collection[EdgeKind]) -> list[ModelKey] | None
    def preorder(self, key: ModelKey, kind: EdgeKind, *, first_target_first: bool=False) -> list[ModelKey]
    def level_order(self, key: ModelKey, kind: EdgeKind) -> list[ModelKey]
    def postorder(self, key: ModelKey, kind: EdgeKind, met: set[ModelKey]) -> list[ModelKey]
    def meets_a_group_twice(self, keys: Iterable[ModelKey], group_of: Callable[[ModelKey], Hashable], kinds: Collection[EdgeKind]) -> bool
    def components(self, kinds: Collection[EdgeKind]) -> list[set[ModelKey]]
    def circular_components(self, kinds: Collection[EdgeKind]) -> list[set[ModelKey]]
    def loops(self, kind: EdgeKind) -> dict[ModelKey, tuple[ModelKey, ...]]
    def quotient(self, group_of: Mapping[ModelKey, _GroupT], kinds: Collection[EdgeKind]) -> GroupGraph[_GroupT]
    def dependency_order(self, kinds: Collection[EdgeKind], nodes: Sequence[ModelKey], key: Callable[[ModelKey], int]) -> list[ModelKey]
# named by the signature of datamodel_code_generator.parser.generation.GenerationStore
@final
@record
class FinalFacts
    modules: tuple[ModuleFacts, ...]
    live_models: tuple[ModelView, ...]
    member_keywords: Callable[[DataTypeView, Callable[[ReferenceView], ModelView | None]], frozenset[str] | None]
    constrained_member: Callable[[DataTypeView, Mapping[str, object]], object | None]
    options: DecisionOptions = DecisionOptions()
# named by the signature of datamodel_code_generator.parser.generation.model_occurrences
class SiteOccurrence(NamedTuple)
    owner: ModelKey
    field: FieldKey | None
    path: tuple[Position, ...]
    node: NodeKey | None
    target: ModelKey
    kind: RefKind
    eager: bool
# named by the signature of datamodel_code_generator.parser.graphql.GraphQLParser
class GraphQLParserConfigDict(ParserConfigDict, closed=True)
    data_model_scalar_type: NotRequired[type[DataModel]]
    data_model_union_type: NotRequired[type[DataModel]]
    graphql_no_typename: NotRequired[bool]
# named by the signature of datamodel_code_generator.parser.jsonschema.JsonSchemaObject
class JSONReference(_enum.Enum)
    LOCAL = 'LOCAL'
    REMOTE = 'REMOTE'
    URL = 'URL'
# named by the signature of datamodel_code_generator.parser.jsonschema.JsonSchemaParser
class JSONSchemaParserConfigDict(ParserConfigDict)
    jsonschema_version: NotRequired[JsonSchemaVersion | None]
    schema_version_mode: NotRequired[VersionMode | None]
# named by the signature of datamodel_code_generator.parser.jsonschema.const_type
ConstType: TypeAlias = Literal['literal', 'none', 'value']
# named by the signature of datamodel_code_generator.parser.jsonschema.dump_null_sources
@final
@record
class NullSources
    type_has_null: bool = False
    type_null: bool = False
    type_list: bool = False
    type_lists_null: bool = False
    type_lists_object: bool = False
    typed: bool = False
    type_string: bool = False
    member_null: bool = False
    nullable: bool | None = None
    copied_nullable: bool = False
    enum_null: bool = False
    enum_set: bool = False
    const_set: bool = False
    const_null: bool = False
# named by the signature of datamodel_code_generator.parser.jsonschema.intersect_keywords
@final
@record
class KeywordIntersection
    keywords: dict[str, Any]
    unsatisfiable: tuple[str, ...]
    untaken_patterns: tuple[str, ...] = ()
# named by the signature of datamodel_code_generator.parser.jsonschema.literal_value_kind
LiteralValueKind: TypeAlias = Literal['none', 'bool', 'int', 'float', 'str', 'other']
# named by the signature of datamodel_code_generator.parser.jsonschema.strongly_connected_components
NodeT = TypeVar('NodeT', bound=_SortableNode)
# named by the signature of datamodel_code_generator.parser.jsonschema.walk_schema_resources
@final
@record
class DocumentResources
    document: DocumentId
    root_base: str
    names: Mapping[str, str]
    duplicate_names: Mapping[str, tuple[str, ...]]
    defaults: frozenset[str]
    resources: frozenset[str]
    bases: Mapping[str, str]
    embedded: Mapping[str, Mapping[str, str]]
    dynamic_anchors: Mapping[str, Mapping[str, str]]
    first_dynamic_anchors: Mapping[str, str]
    implicit_resources: bool
    embeds_resources: bool
    declarations: tuple[Declaration, ...]
    passed_anchors: tuple[tuple[str, str], ...]
# named by the signature of datamodel_code_generator.parser.openapi.OpenAPIParser
class OpenAPIParserConfigDict(JSONSchemaParserConfigDict, closed=True)
    openapi_scopes: NotRequired[list[OpenAPIScope] | None]
    include_path_parameters: NotRequired[bool]
    use_status_code_in_response_name: NotRequired[bool]
    keep_first_character_of_path_keys: NotRequired[bool]
    keep_content_parameter_refs: NotRequired[bool]
    skip_path_extension_keys: NotRequired[bool]
    use_enum_field_as_literal_in_operations: NotRequired[bool]
    openapi_include_paths: NotRequired[list[str] | None]
    openapi_include_info_version: NotRequired[bool]
    openapi_as_definitions: NotRequired[Sequence[OpenAPIAsDefinitions]]
    openapi_version: NotRequired[OpenAPIVersion | None]
# named by the signature of datamodel_code_generator.parser.protobuf.ProtobufParser
class ProtobufParserConfigDict(JSONSchemaParserConfigDict, closed=True)
    protobuf_version: NotRequired[ProtobufVersion | None]
# named by the signature of datamodel_code_generator.parser.schema_version.configured_version
_VersionT = TypeVar('_VersionT')
# named by the signature of datamodel_code_generator.parser.xmlschema.XMLSchemaParser
class XMLSchemaParserConfigDict(JSONSchemaParserConfigDict, closed=True)
    xmlschema_version: NotRequired[XMLSchemaVersion | None]
# named by the signature of datamodel_code_generator.preset.PresetConfig
class BaseGenerateConfig(TypedDict)
    input_file_type: NotRequired[InputFileType]
    output: NotRequired[Path | None]
    emit_model_metadata: NotRequired[Path | None]
    output_model_type: NotRequired[DataModelType]
    preset: NotRequired[PresetName | None]
    read_implied_options_from_merged_values: NotRequired[bool]
    target_python_version: NotRequired[PythonVersion]
    target_pydantic_version: NotRequired[TargetPydanticVersion | None]
    base_class: NotRequired[str]
    base_class_map: NotRequired[dict[str, str | list[str]] | None]
    model_name_map: NotRequired[dict[str, str] | None]
    additional_imports: NotRequired[list[str] | None]
    class_decorators: NotRequired[list[str] | None]
    custom_template_dir: NotRequired[Path | None]
    schema_validator_type: NotRequired[SchemaValidatorType | None]
    generate_schema_validators: NotRequired[bool]
    check_pattern_maps_strictly: NotRequired[bool]
    schema_validator_base_class_name: NotRequired[str | None]
    validation: NotRequired[bool]
    field_constraints: NotRequired[bool]
    alias_generator: NotRequired[AliasGenerator | None]
    pin_aliases_with_alias_generator: NotRequired[bool]
    snake_case_field: NotRequired[bool]
    strip_default_none: NotRequired[bool]
    disable_timestamp: NotRequired[bool]
    enable_version_header: NotRequired[bool]
    enable_command_header: NotRequired[bool]
    enable_generated_header_marker: NotRequired[bool]
    allow_population_by_field_name: NotRequired[bool]
    allow_extra_fields: NotRequired[bool]
    extra_fields: NotRequired[str | None]
    use_generic_base_class: NotRequired[bool]
    keep_bases_beside_generic_base_class: NotRequired[bool]
    class_name: NotRequired[str | None]
    allow_leading_underscore_class_name: NotRequired[bool]
    class_name_prefix: NotRequired[str | None]
    class_name_suffix: NotRequired[str | None]
    class_name_affix_scope: NotRequired[ClassNameAffixScope]
    use_standard_collections: NotRequired[bool]
    use_schema_description: NotRequired[bool]
    use_field_description: NotRequired[bool]
    use_field_description_example: NotRequired[bool]
    use_attribute_docstrings: NotRequired[bool]
    use_inline_field_description: NotRequired[bool]
    use_single_line_docstring: NotRequired[bool]
    use_default_kwarg: NotRequired[bool]
    apply_field_options_to_every_field: NotRequired[bool]
    deserialize_default_values: NotRequired[Sequence[DefaultValueType]]
    use_missing_sentinel: NotRequired[bool]
    reuse_model: NotRequired[bool]
    reuse_scope: NotRequired[ReuseScope]
    shared_module_name: NotRequired[str]
    encoding: NotRequired[str]
    enum_field_as_literal: NotRequired[LiteralType | None]
    enum_field_as_literal_map: NotRequired[dict[str, str] | None]
    open_enums: NotRequired[OpenEnums | None]
    open_enum_base_class_map: NotRequired[dict[str, str] | None]
    ignore_enum_constraints: NotRequired[bool]
    use_one_literal_as_default: NotRequired[bool]
    use_enum_values_in_discriminator: NotRequired[bool]
    merge_shared_variant_tags: NotRequired[bool]
    use_unmapped_variant_tag_values: NotRequired[bool]
    read_mapping_keys_by_schema_tag_type: NotRequired[bool]
    use_root_types_for_mixed_union_map_keys: NotRequired[bool]
    rename_redeclared_fields_hiding_types: NotRequired[bool]
    rename_fields_hiding_types_from_type_checkers: NotRequired[bool]
    read_schema_version_per_document: NotRequired[bool]
    read_escaped_ref_pointers: NotRequired[bool]
    read_dynamic_anchors_in_document_order: NotRequired[bool]
    read_ids_with_empty_fragment: NotRequired[bool]
    read_refs_in_their_resources: NotRequired[bool]
    read_single_allof_refs_in_their_documents: NotRequired[bool]
    read_ref_siblings_in_closed_allof_members: NotRequired[bool]
    ignore_ref_siblings_by_schema_version: NotRequired[bool]
    read_yaml_1_1_numbers_as_text: NotRequired[bool]
    use_msgspec_tagged_unions: NotRequired[bool]
    tag_msgspec_by_payload_name: NotRequired[bool]
    use_msgspec_nullable_enum_alias: NotRequired[bool]
    use_msgspec_forbid_unknown_fields: NotRequired[bool]
    use_typed_nullable_map_values: NotRequired[bool]
    use_typed_map_values_beside_other_types: NotRequired[bool]
    use_single_dict_for_object_maps: NotRequired[bool]
    read_unevaluated_properties: NotRequired[bool]
    read_kubernetes_extensions: NotRequired[bool]
    use_single_value_enum_as_const: NotRequired[bool]
    read_const_beside_enum: NotRequired[bool]
    read_format_as_annotation: NotRequired[bool]
    read_uuid6_uuid7_uuid8_formats: NotRequired[bool]
    filter_literal_values: NotRequired[bool]
    intersect_allof_keywords: NotRequired[bool]
    intersect_combined_schema_keywords: NotRequired[bool]
    distribute_allof_over_unions: NotRequired[bool]
    intersect_merged_allof_members: NotRequired[bool]
    read_allof_parents_as_their_models: NotRequired[bool]
    read_allof_parents_in_mro_order: NotRequired[bool]
    read_inherited_property_schemas_in_mro_order: NotRequired[bool]
    read_nullable_beside_type_list: NotRequired[bool]
    keep_null_of_nullable_items: NotRequired[bool]
    keep_field_defaults_off_branch_roots: NotRequired[bool]
    keep_enum_member_values: NotRequired[bool]
    set_default_enum_member: NotRequired[bool]
    use_subclass_enum: NotRequired[bool]
    use_specialized_enum: NotRequired[bool]
    strict_nullable: NotRequired[bool]
    omit_redundant_reference_null: NotRequired[bool]
    keep_reference_null_on_merged_models: NotRequired[bool]
    use_generic_container_types: NotRequired[bool]
    enable_faux_immutability: NotRequired[bool]
    disable_appending_item_suffix: NotRequired[bool]
    singularize_last_word_of_item_names: NotRequired[bool]
    empty_enum_field_name: NotRequired[str | None]
    field_extra_keys: NotRequired[set[str] | None]
    field_include_all_keys: NotRequired[bool]
    field_extra_keys_without_x_prefix: NotRequired[set[str] | None]
    model_extra_keys: NotRequired[set[str] | None]
    model_extra_keys_without_x_prefix: NotRequired[set[str] | None]
    include_path_parameters: NotRequired[bool]
    openapi_include_paths: NotRequired[list[str] | None]
    openapi_include_info_version: NotRequired[bool]
    openapi_as_definitions: NotRequired[Sequence[OpenAPIAsDefinitions]]
    graphql_no_typename: NotRequired[bool]
    wrap_string_literal: NotRequired[bool | None]
    use_title_as_name: NotRequired[bool]
    infer_union_variant_names: NotRequired[bool]
    use_tag_as_union_variant_name: NotRequired[bool]
    infer_union_discriminators: NotRequired[bool]
    name_allof_union_members_after_branches: NotRequired[bool]
    use_operation_id_as_name: NotRequired[bool]
    use_unique_items_as_set: NotRequired[bool]
    use_unique_items_as_set_by_value: NotRequired[bool]
    read_set_item_fields_in_class_order: NotRequired[bool]
    use_tuple_for_fixed_items: NotRequired[bool]
    use_tuple_for_closed_arrays: NotRequired[bool]
    use_tuple_for_fixed_length_arrays: NotRequired[bool]
    use_total_false_for_typed_dict: NotRequired[bool]
    use_closed_typed_dict: NotRequired[bool]
    allof_merge_mode: NotRequired[AllOfMergeMode]
    allof_class_hierarchy: NotRequired[AllOfClassHierarchy]
    allow_remote_refs: NotRequired[bool | None]
    strict_refs: NotRequired[bool]
    untrusted_input: NotRequired[bool]
    allow_private_network: NotRequired[bool]
    http_backend: NotRequired[HTTPBackend]
    http_headers: NotRequired[Sequence[tuple[str, str]] | None]
    http_local_ref_path: NotRequired[Path | None]
    http_ignore_tls: NotRequired[bool]
    http_timeout: NotRequired[float | None]
    lockfile: NotRequired[Path | None]
    update_lock: NotRequired[bool]
    locked: NotRequired[bool]
    use_annotated: NotRequired[bool]
    use_serialize_as_any: NotRequired[bool]
    use_serialize_as_any_for_every_subclass: NotRequired[bool]
    use_non_positive_negative_number_constrained_types: NotRequired[bool]
    use_decimal_for_multiple_of: NotRequired[bool]
    use_decimal_in_field_forms: NotRequired[bool]
    use_encoded_str_for_constrained_base64: NotRequired[bool]
    use_strict_str_for_base64: NotRequired[bool]
    use_msgspec_meta_for_map_keys: NotRequired[bool]
    merge_msgspec_str_like_union_members: NotRequired[bool]
    omit_redundant_constraints: NotRequired[bool]
    read_length_keywords_by_type: NotRequired[bool]
    read_object_keywords_by_type: NotRequired[bool]
    read_msgspec_union_bounds_exactly: NotRequired[bool]
    keep_string_keywords_beside_formats: NotRequired[bool]
    read_input_model_dataclass_fields_by_alias: NotRequired[bool]
    reuse_every_reached_input_model_type: NotRequired[bool]
    use_site_models_for_constrained_refs: NotRequired[bool]
    use_one_model_per_ref_site: NotRequired[bool]
    original_field_name_delimiter: NotRequired[str | None]
    use_double_quotes: NotRequired[bool]
    use_union_operator: NotRequired[bool]
    collapse_root_models: NotRequired[bool]
    collapse_root_models_name_strategy: NotRequired[CollapseRootModelsNameStrategy | None]
    collapse_shared_parent_wrappers: NotRequired[bool]
    keep_constrained_root_models_in_every_container: NotRequired[bool]
    keep_enum_literal_aliases: NotRequired[bool]
    keep_reference_null_on_collapsed_root_models: NotRequired[bool]
    keep_shared_members_on_collapsed_root_models: NotRequired[bool]
    collapse_constrained_root_models_as_annotated: NotRequired[bool]
    remove_unused_models_beside_type_overrides: NotRequired[bool]
    keep_self_referencing_array_items: NotRequired[bool]
    keep_defaults_of_inherited_required_fields: NotRequired[bool]
    omit_incomplete_model_defaults: NotRequired[bool]
    collapse_reuse_models: NotRequired[bool]
    skip_root_model: NotRequired[bool]
    use_root_model_sequence_interface: NotRequired[bool]
    use_type_alias: NotRequired[bool]
    use_type_alias_type: NotRequired[bool]
    use_root_model_type_alias: NotRequired[bool]
    use_validate_default_for_root_model_type_aliases: NotRequired[bool]
    use_plain_alias_for_recursive_models: NotRequired[bool]
    special_field_name_prefix: NotRequired[str | None]
    remove_special_field_name_prefix: NotRequired[bool]
    capitalise_enum_members: NotRequired[bool]
    capitalise_numbered_enum_members: NotRequired[bool]
    keep_model_order: NotRequired[bool]
    order_constructor_fields_by: NotRequired[Sequence[ConstructorFieldOrder]]
    custom_file_header: NotRequired[str | None]
    custom_file_header_path: NotRequired[Path | None]
    custom_file_header_mode: NotRequired[CustomFileHeaderMode]
    custom_formatters: NotRequired[list[str] | None]
    use_pendulum: NotRequired[bool]
    use_standard_primitive_types: NotRequired[bool]
    use_str_for_formats_msgspec_cannot_decode: NotRequired[bool]
    use_object_type: NotRequired[bool]
    untyped_value_type: NotRequired[str | None]
    http_query_parameters: NotRequired[Sequence[tuple[str, str]] | None]
    treat_dot_as_module: NotRequired[bool | None]
    strict_dotted_module_names: NotRequired[bool]
    rename_submodules_hidden_by_classes: NotRequired[bool]
    use_exact_imports: NotRequired[bool]
    use_type_checking_imports: NotRequired[bool | None]
    union_mode: NotRequired[UnionMode | None]
    output_datetime_class: NotRequired[DatetimeClassType | None]
    output_date_class: NotRequired[DateClassType | None]
    keyword_only: NotRequired[bool]
    frozen_dataclasses: NotRequired[bool]
    no_alias: NotRequired[bool]
    use_serialization_alias: NotRequired[bool]
    use_frozen_field: NotRequired[bool]
    use_default_factory_for_optional_nested_models: NotRequired[bool]
    formatters: NotRequired[list[Formatter] | None]
    builtin_format_line_length: NotRequired[int | None]
    parent_scoped_naming: NotRequired[bool]
    naming_strategy: NotRequired[NamingStrategy | None]
    duplicate_name_suffix: NotRequired[dict[str, str] | None]
    use_duplicate_name_suffix_for_every_collision: NotRequired[bool]
    dataclass_arguments: NotRequired[DataclassArguments | None]
    keep_false_dataclass_arguments: NotRequired[bool]
    disable_future_imports: NotRequired[bool]
    import_overrides: NotRequired[dict[str, str] | None]
    type_mappings: NotRequired[list[str] | None]
    type_overrides: NotRequired[dict[str, str] | None]
    type_overrides_replace_whole_type: NotRequired[bool]
    use_x_python_type_as_written: NotRequired[bool]
    use_x_python_import_for_every_ref: NotRequired[bool]
    use_bytes_for_content_media_type: NotRequired[bool]
    use_bounds_for_float_const: NotRequired[bool]
    read_only_write_only_model_type: NotRequired[ReadOnlyWriteOnlyModelType | None]
    dedupe_request_response_variants: NotRequired[bool]
    dedupe_numbered_request_response_variants: NotRequired[bool]
    use_status_code_in_response_name: NotRequired[bool]
    keep_first_character_of_path_keys: NotRequired[bool]
    keep_content_parameter_refs: NotRequired[bool]
    skip_path_extension_keys: NotRequired[bool]
    use_enum_field_as_literal_in_operations: NotRequired[bool]
    name_converted_payloads_by_message: NotRequired[bool]
    merge_message_trait_headers: NotRequired[bool]
    all_exports_scope: NotRequired[AllExportsScope | None]
    all_exports_collision_strategy: NotRequired[AllExportsCollisionStrategy | None]
    field_type_collision_strategy: NotRequired[FieldTypeCollisionStrategy | None]
    module_split_mode: NotRequired[ModuleSplitMode | None]
    schema_version: NotRequired[str | None]
    schema_version_mode: NotRequired[VersionMode | None]
    external_ref_mapping: NotRequired[dict[str, str] | None]
    generate_server: NotRequired[ServerType | None]
    server_output: NotRequired[Path | None]
    server_package: NotRequired[str | None]
    server_model_package: NotRequired[str | None]
    server_layout: NotRequired[ServerLayout | None]
    server_handler_mode: NotRequired[ServerHandlerMode | None]
    server_handler_modes: NotRequired[Mapping[str, ServerHandlerMode] | None]
    server_include_request: NotRequired[bool | None]
    server_body_mode: NotRequired[ServerBodyMode | None]
    server_body_modes: NotRequired[Mapping[str, ServerBodyMode] | None]
    server_primary_responses: NotRequired[Mapping[str, Any] | None]
    server_operation_names: NotRequired[Mapping[str, str] | None]
    server_router_names: NotRequired[Mapping[str, str] | None]
    server_parameter_names: NotRequired[Mapping[str, Mapping[str, str]] | None]
    generate_client: NotRequired[ClientType | None]
    client_output: NotRequired[Path | None]
    client_package: NotRequired[str | None]
    client_model_package: NotRequired[str | None]
    client_signature_style: NotRequired[ClientSignatureStyle | None]
    client_body_arguments: NotRequired[ClientBodyArguments | None]
    client_resource_names: NotRequired[Mapping[str, str] | None]
    client_operations: NotRequired[Mapping[str, Mapping[str, Any]] | None]
    client_default_base_url: NotRequired[str | None]
    client_server_base_url: NotRequired[str | None]
    client_deep_object_brackets: NotRequired[bool | None]
    client_asyncapi_perspective: NotRequired[ClientAsyncAPIPerspective | None]
    client_protocols: NotRequired[Mapping[str, Any] | None]
# named by the signature of datamodel_code_generator.preset.preset_info_as_dict
class _PresetInfoDict(TypedDict)
    name: str
    summary: str
    description: str
    requires_target_python_version: bool
    target_python_version: str
    option_groups: list[_PresetOptionGroupDict]
    copyable_config: _PresetCopyableConfigDict
# a base of datamodel_code_generator.prompt.CurrentOptionPayload
class _Payload(BaseModel)
    model_config = ConfigDict(extra='forbid')
# a base of datamodel_code_generator.prompt.PromptPayload
class _Envelope(_Payload)
    version: Literal[1]
    format: Literal['json']
# named by the signature of datamodel_code_generator.reference.ModelResolver
@record
class ClassScope
    name: str
    output_names: tuple[str, ...] = ()
    @property
    def keys(self) -> tuple[str, ...]
# named by the signature of datamodel_code_generator.remote_lock.RemoteReferenceLock
class StagedFile(NamedTuple)
    staged_file: Path | None
    target: Path
    resolved_target: Path
    anchor: PublicationAnchor | None = None
    source_directory_fd: int | None = None
    source_name: str | None = None
# named by the signature of datamodel_code_generator.types.DataTypeManager
@final
@record
class ConstraintOptions
    omit_redundant_constraints: bool = False
    use_decimal_in_field_forms: bool = False
    use_encoded_str_for_constrained_base64: bool = False
    use_strict_str_for_base64: bool = False
    read_length_keywords_by_type: bool = False
    read_msgspec_union_bounds_exactly: bool = False
    keep_string_keywords_beside_formats: bool = False
# named by the signature of datamodel_code_generator.types.DataTypeManager
FormatKeywordForm: TypeAlias = Literal['annotated', 'text']
# named by the signature of datamodel_code_generator.util.read_yaml_text
_T = TypeVar('_T')
# named by the signature of datamodel_code_generator.watch_dependencies.WatchDependencies
@dataclass(slots=True)
class _CollectedGeneration(_Weakrefable)
    owner: WatchDependencies
    files: set[Path] = field(default_factory=set)
    symlink_events: set[Path] = field(default_factory=set)
    failed: bool = False
    polling_fingerprints: dict[Path, tuple[int, int, int]] | None = None
# a base of datamodel_code_generator.watch_dependencies.WatchDependencies
class _Weakrefable
    __slots__ = ('__weakref__',)
