dependabot[bot] opened a new pull request, #19336:
URL: https://github.com/apache/iceberg/pull/19336

   Bumps 
[datamodel-code-generator](https://github.com/datamodel-code-generator/datamodel-code-generator)
 from 0.99.0 to 0.105.0.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/releases";>datamodel-code-generator's
 releases</a>.</em></p>
   <blockquote>
   <h2>0.105.0</h2>
   <h2>Breaking Changes</h2>
   <h3>Code Generation Changes</h3>
   <ul>
   <li>An allOf wrapper of an x-python-type class is a root of that class - An 
allOf wrapper whose one member is a definition that holds an x-python-type 
class (the root of that class, see the x-python-type-object-root record) was 
written as an empty model that subclassed the base or held nothing. It is now 
the root of the class under its own name, written through the same form as an 
allOf wrapper of a value target: a Pydantic RootModel[Base] (with 
arbitrary_types_allowed=True), or a type alias of the class in dataclass, 
TypedDict and msgspec output. This covers a wrapper over a base in another 
file, an inline allOf member, two equal members, chains of wrappers, keywords 
that do not add properties (closed, unevaluatedProperties, minProperties, a 
title, a type, a null default) and union branches. Union branches beside the 
member that main deduplicated into one empty class become one root per branch, 
so a numbered class is added (Branches2 beside Branches1, and the union names 
both). T
 he empty wrapper held no value, but some working output changes. A wrapper 
over an empty base loses its subclass relation to the base: issubclass, the 
no-argument build, {} and model_json_schema() go, as for the converted roots of 
the x-python-type-object-root record. Under --reuse-model and 
--collapse-root-models, a class that equalled such a wrapper reuses it or is 
inlined like any root model, and a numbered class name of the former empty 
model is gone with it. A wrapper stays a model where a model extends it, two 
bases or a property are present, a union names it by a discriminator, or it has 
a custom base class. The owner decided this under the exception of the 
x-python-type-object-root record on 2026-11-28, including the lost subclass 
relation of an empty wrapper over an empty base. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7627";>#7627</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/
 issues/7618">#7618</a>)</li>
   <li>A model that builds a customTypePath class through a collapsed root, a 
base, a type alias or a pydantic dataclass writes arbitrary_types_allowed - A 
Pydantic v2 model that builds a customTypePath class through a collapsed root, 
a base or a type alias, which only the model that declared it gave 
arbitrary_types_allowed, now writes the key in its config as the declaring 
model does; the module imports where Pydantic builds the class only with it. 
Class names, field names, bases, signatures and parsed values are the same. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7620";>#7620</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7593";>#7593</a>)</li>
   <li>A pydantic dataclass for target 2 aliases a module, builtin or class 
that an inherited field name hides - A pydantic_v2.dataclass with 
--target-pydantic-version 2 that inherits a field named like a sibling module, 
a builtin or a class of its file (a base field user beside the module user, a 
field str, a field Place) binds the name to an alias and names the alias where 
the annotation needs it (from . import user as user_aliased, from builtins 
import str as str_aliased, Place_aliased = Place). Pydantic 2.0 sets the 
defaults a class inherits on the class and evaluates the class's annotations in 
that namespace, where the default hides the module, builtin or class. This also 
changes the modules that imported on Pydantic 2.0 but rejected valid payloads 
(an Optional[date] or list[Place] field read the default instead of the type). 
On later Pydantic releases the modules keep their classes, field names and 
order, bases, required-ness and parsed values; a module no longer has the attrib
 ute that only the replaced import bound: a sibling module imported under its 
own name (billing.user, venue.place under --snake-case-field) or a class 
imported from another module (venue.Place under --use-exact-imports). (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7631";>#7631</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7584";>#7584</a>)</li>
   <li>A pydantic dataclass that builds a later base's buildable customTypePath 
class writes arbitrary_types_allowed - A pydantic_v2.dataclass whose later base 
has a customTypePath that names a class Pydantic builds anyway, such as 
datetime.date, or a customTypePath field that --type-overrides replaces, gains 
arbitrary_types_allowed=True in a config of its own that keeps every item it 
applied. The module accepts and rejects the same values. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7605";>#7605</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7592";>#7592</a>)</li>
   <li>Types written after a module aliases an import name the alias where the 
bare name read another field's default - Where a field name of a module hides 
an import (Item has a field date), the module imports it as from datetime 
import date as date_aliased. A type a --type-overrides key wrote after that, or 
a root type --collapse-root-models inlined from another module, named the bare 
date, which in a Pydantic class body is the default of the field date (None). 
These modules imported, but the field accepted only None: a required when: 
date, list[date], the date branch of date | int and a collapsed list[date] 
rejected every valid date and accepted null or [null], which the schema 
rejects. In a plain dataclass, Decimal | None made get_type_hints and 
pydantic.TypeAdapter raise TypeError while construction worked. Such a type now 
names the alias (when: date_aliased, list[date_aliased]), so a valid date 
parses to the type the override or the schema names. It changes by default 
because s
 uch a field matched neither the schema nor the override and no valid value of 
the date it names got through. Class names, field names, required-ness, 
defaults and field order are unchanged. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7616";>#7616</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7601";>#7601</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7604";>#7604</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7615";>#7615</a>)</li>
   <li>A root type inlined from a module-qualified import names the receiving 
module's own import - A root typed by a module-qualified x-python-import name 
(Outer.Kind of an aliased module import), inlined by --collapse-root-models 
into a module that does not alias the module, took the alias of the module it 
came from (asyncio_aliased.sslproto.SSLProtocolState) and the receiving module 
imported only its own name. It now names the receiving module's own import and 
qualifier (asyncio.sslproto.SSLProtocolState). The same input with the 
dataclasses, TypedDict and msgspec backends changes the same way. Class names, 
field names and field order are unchanged. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7616";>#7616</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7601";>#7601</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7615";>#7615</a>)</li
 >
   <li>A module imports the models of a submodule that its package's forwarded 
class hides, where nothing loads the submodule first - Where an import cycle 
merge moves a class into _internal.py, the package <strong>init</strong>.py 
only re-exports it (from ._internal import Warn), nothing the 
<strong>init</strong>.py runs loads the submodule of the same name 
(pkg/Warn.py) and --all-exports-scope lets the output through, a module that 
read the submodule wrote from . import Warn with Warn.Detail, which read the 
class: the module failed to import with AttributeError, and with dataclasses, 
msgspec or TypedDict every decode or get_type_hints failed. Such a module now 
imports the model from the submodule (from .Warn import Detail), as 
--use-exact-imports does and as 0.89.0 does for a package 
<strong>init</strong>.py that defines the class. Only those modules change; a 
package whose modules read nothing of the submodule keeps its output, and a 
reader's attribute Warn, which only the import 
 bound, goes away. Once a reader is imported, the name Warn of the package is 
the submodule, as --all-exports-scope recursive output already behaves; with 
dataclasses, msgspec or TypedDict a program that imported a reader and then 
read the exported class from the package now gets the module. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7596";>#7596</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7573";>#7573</a>)</li>
   <li>--input-model allows arbitrary types where a field's class needs them - 
A Pydantic v2 model generated from an input model whose field type is a plain 
class that Pydantic builds only with arbitrary_types_allowed (in a union, 
Optional, a container such as UserDict, a root model, a type alias or a parent 
model) wrote no config and failed at import with PydanticSchemaGenerationError. 
Each such model now writes arbitrary_types_allowed=True (a root model of such a 
type is written RootModel[Any] with the class in its root field). Class names, 
field names, field types and valid-payload values are unchanged, and modules 
that import today are byte-identical. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7595";>#7595</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7562";>#7562</a>)</li>
   <li>A definition that only holds an x-python-type class is a root of that 
class - An object definition that declares no property, no map and no 
validator, keeps no unknown keys and names an x-python-type class that does not 
fit an object (--input-model writes this for a plain class, an InstanceOf class 
or a class that builds its own schema) was written as an empty model that held 
nothing and accepted any object. It is now the root of that class under the 
same name, as a field of the same schema already took the class: a Pydantic 
RootModel[Any] with root: <!-- raw HTML omitted --> and 
arbitrary_types_allowed=True, or a type alias of the class in dataclass, 
TypedDict and msgspec output. Two such definitions of the same name from 
different documents that one module holds (Lone in a.json and in b.json, both 
used from z.json) were one empty class; they are now two roots, and the second 
takes the module's suffixed name, so its field is typed LoneModel. Inline 
OpenAPI request and respons
 e bodies follow the same rule. A definition stays a model where a model 
extends it, a union names it as a variant or by a discriminator mapping, it 
keeps unknown keys (additionalProperties: true, unevaluatedProperties, 
--extra-fields allow, --allow-extra-fields or an --extra-template-data entry) 
or it has a custom base class. The empty model held no value, but some working 
output changes. Under --collapse-root-models and the dated presets the former 
empty class name is inlined into its holders like any root model. Under 
--strip-default-none together with 
--use-default-factory-for-optional-nested-models, a field that holds a 
converted definition is required, as a field that holds any root model already 
is on main, because the converted root has no default factory. The owner 
decided this exception to the default rule on 2026-11-27 (the empty model, and 
the working output that changes with it) and approved the required fields and 
the vanished numbered class names on 2026-11-28. A numbe
 red name such as Plain2 that the former empty class held under the collapse 
presets is gone with it. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7622";>#7622</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7581";>#7581</a>)</li>
   </ul>
   <h3>API/CLI Changes</h3>
   <ul>
   <li>Model hook that names the inherited field names a pydantic dataclass's 
class body hides - DataModel.inherited_namespace_bindings returns, by field 
name, the inherited defaults the model library binds on a class before it 
evaluates the class's annotations ('none' for None, 'object' for any other 
value), so the generated module can alias an import, builtin or class such a 
name hides. It is empty for every model class except 
pydantic_v2.dataclass.DataClass, and there for targets of Pydantic 2.1 or 
later. Nothing is removed or changed. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7631";>#7631</a>)</li>
   <li>Type annotation and DataType fact for classes that need arbitrary types 
- PythonTypeSchemaAnnotation takes a keyword-only arbitrary_types argument and 
has an arbitrary_types property, and DataType has a needs_arbitrary_types field 
(default False): an input model's x-python-type names a class Pydantic builds 
only with arbitrary_types_allowed. Nothing is removed or changed. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7595";>#7595</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7562";>#7562</a>)</li>
   <li>Config field for --keep-constrained-map-roots-as-classes - The option 
adds its config field keep_constrained_map_roots_as_classes (default False) to 
the generate and parser configs, the config TypedDicts and the Parser attribute 
of the same name. Nothing is removed or changed. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7633";>#7633</a>)</li>
   <li>Public names for --merge-config-of-generated-bases - The option adds its 
config field. Two public names change: DataModelField.python_rejected_patterns, 
which the option's class code calls from the class that owns the generated 
field, is now public (it was the private _python_rejected_patterns), and the 
SUPPORTS_CONFIG_EXTRA class variable moved from the pydantic v2 BaseModel class 
to the shared pydantic v2 base class, so the pydantic v2 dataclass model class 
now has it too. Nothing else is removed or changed. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7613";>#7613</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7589";>#7589</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7579";>#7579</a>)</li>
   <li>Config field for --use-root-model-any-for-custom-type-path - The option 
adds its config field use_root_model_any_for_custom_type_path (default False) 
to the generate config. Nothing is removed or changed. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7620";>#7620</a>)</li>
   </ul>
   <h2>New Warnings</h2>
   <ul>
   <li>The pattern warning of a pydantic dataclass that redeclares inherited 
fields comes from another module - A pydantic_v2.dataclass that redeclares an 
inherited field without a pattern Python's re rejects still warns with the same 
text, but the warning now comes from 
datamodel_code_generator.model.pydantic_v2.base_model instead of 
datamodel_code_generator.model.pydantic_v2.dataclass, because the step moved to 
the class both Pydantic backends share. A warnings filter that names the old 
module no longer matches; name the new one. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7613";>#7613</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7579";>#7579</a>)</li>
   </ul>
   <h2>New Options</h2>
   <ul>
   <li>New option <code>--keep-constrained-map-roots-as-classes</code> 
(<code>--no-keep-constrained-map-roots-as-classes</code>): Under 
--use-root-model-type-alias, write a root model of an object map that the alias 
form cannot write, such as one with minProperties or maxProperties, a value 
pattern that needs the python-re regex engine or the rules of 
--generate-schema-validators, as a RootModel class, as every other constrained 
root is; without it the map root stays an alias (<code>Labels = 
RootModel[dict[str, str]]</code>) that drops them, as in 0.104.0 (Pydantic v2 
only) (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7633";>#7633</a>)</li>
   <li>New option <code>--merge-config-of-generated-bases</code> 
(<code>--no-merge-config-of-generated-bases</code>): pydantic_v2.BaseModel and 
pydantic_v2.dataclass output: a class with generated bases, such as an allOf of 
$ref members, applies the strictest extra of them in any base order: 
extra='forbid' where a base rejects extra keys, else extra='allow' where one 
keeps them, also over the class's own additionalProperties true. Without it a 
model takes the extra of its last base that sets one and a dataclass that of 
its first base, as in 0.104.0, so the class accepts or drops keys a base 
rejects. An extra written through --extra-template-data stays. A base the class 
builds with the python-re regex engine of another base keeps its own patterns 
too: the class writes the inherited fields whose pattern Python's re rejects 
again without that pattern, with a warning, instead of the base leaving the 
pattern out. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-cod
 e-generator/issues/7613">#7613</a>, <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7589";>#7589</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7579";>#7579</a>)</li>
   <li>New option <code>--use-root-model-any-for-custom-type-path</code> 
(<code>--no-use-root-model-any-for-custom-type-path</code>): 
pydantic_v2.BaseModel output: write a RootModel whose root holds a class named 
by customTypePath as RootModel[Any] with arbitrary_types_allowed=True and the 
class on root, so a module whose class Pydantic cannot build imports. Without 
it the root is RootModel[<!-- raw HTML omitted -->], as in 0.104.0, and a 
module naming such a class fails at import. Under --use-root-model-type-alias a 
map root of such a class stays an alias unless 
--keep-constrained-map-roots-as-classes is set too (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7620";>#7620</a>)</li>
   </ul>
   <h2>New Dated Presets</h2>
   <ul>
   <li><code>standard-py3XX-20261128</code> and 
<code>practical-py3XX-20261128</code>: they keep the 20261127 options and add 
Custom type path roots 
(<code>--use-root-model-any-for-custom-type-path</code>): A Pydantic v2 
RootModel whose root holds a customTypePath class is written as RootModel[Any] 
with arbitrary_types_allowed=True and the class on root, so it imports for any 
class; Merged config of generated bases 
(<code>--merge-config-of-generated-bases</code>): A Pydantic class with 
generated bases applies the strictest extra of them in any base order, and a 
base built with the python-re engine of another base keeps its own patterns; 
Constrained map roots as classes 
(<code>--keep-constrained-map-roots-as-classes</code>): Under 
--use-root-model-type-alias, a root model of an object map with property 
counts, a value pattern that needs the python-re engine or schema validator 
rules is a RootModel class, as every other constrained root is, instead of an 
alias that drops them. (<a href
 
="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7633";>#7633</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7613";>#7613</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7620";>#7620</a>)</li>
   </ul>
   <h2>Changes That Need No Action</h2>
   <ul>
   <li>A pydantic dataclass on Pydantic 2.0 aliases a module or class that an 
inherited field name hides - A pydantic_v2.dataclass for 
--target-pydantic-version 2 failed to import on Pydantic 2.0 when a field that 
a class inherits from a base is named like a module the file imports, a builtin 
or a class the annotation loads (a base field date or str, a field Place beside 
a class Place): Pydantic 2.0 sets the inherited defaults on the class and 
evaluates the class's annotations in that namespace, where the default binds 
that name, and raised a TypeError or NameError such as 'NoneType' | None. The 
module now imports the module or builtin under an alias the field name does not 
hide (from datetime import date as date_aliased, from builtins import str as 
str_aliased), binds a class of the same file to an alias after the class 
(Place_aliased = Place) and names the alias in the annotation. These modules 
failed to import; the modules that imported but rejected valid payloads are in 
the on-ta
 rget-2 record. Class names, field names and order, bases, 
<strong>init</strong> parameters and parsed values are the same, and the output 
for every other target and backend is unchanged. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7631";>#7631</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7584";>#7584</a>)</li>
   <li>A pydantic dataclass allows the customTypePath classes of a later base's 
fields - A pydantic_v2.dataclass with several bases applies the config of its 
first base (or its own) to the fields it inherits from every base, so a 
customTypePath class declared by a later base was built without 
arbitrary_types_allowed and the module failed to import with 
PydanticSchemaGenerationError, for example class Both(Base, Handle) with a 
closed Base and a Handle field customTypePath: threading.Lock. The dataclass 
now writes arbitrary_types_allowed=True in a config of its own that keeps every 
item it applied, as the class that declares the field already did. Class names, 
field names and order, bases, <strong>init</strong> parameters, field types and 
parsed values are the same. Two modules that imported before gain the same key 
without any change in what they accept: one whose later base has a 
customTypePath that names a class Pydantic builds anyway, such as 
datetime.date, and one whose later base
  has a customTypePath field replaced by --type-overrides. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7605";>#7605</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7592";>#7592</a>)</li>
   <li>A pydantic dataclass that redeclares an inherited field aliases the 
class of its module that the base's field name shadows - A pydantic dataclass 
that redeclared a field of its base, in a module whose annotations are strings, 
failed to import when the annotation loaded a class of the same module that the 
base's class body binds to a field's default: pydantic evaluates the annotation 
in the base's class body and raised a TypeError on Place | None where the base 
has a field Place. The module now binds Place_aliased = Place after the class 
and the annotation names the alias, as it already did for an imported class 
(from .place import Place as Place_aliased). Two names that both raise are 
aliased in turn, and builtins that two inherited fields hide are aliased 
together. Only modules that failed to import change; class names, field names, 
bases, field order and parsed values are the same. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues
 /7603">#7603</a>, <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7583";>#7583</a>)</li>
   <li>A pydantic dataclass whose base has a field named like the dataclass 
aliases the dataclass itself - A pydantic dataclass that redeclared a field of 
its base with its own type failed to import on Pydantic 2.10 and later when the 
base has a field named like the dataclass: Pydantic evaluates Concert | None in 
the base's class body, where Concert is that field's default, and raised a 
TypeError. The module now binds Concert_aliased = Concert after the class and 
the annotation names the alias. The alias is a forward reference, so Pydantic 
2.1 to 2.5, where the old output imported, fail at first use of the dataclass 
as every forward reference does there; Pydantic 2.0 and 2.6 or later work. Only 
modules that failed to import on Pydantic 2.10 and later change; class names, 
field names, bases, field order and parsed values are the same. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7614";>#7614</a>,
 <a href="https://redirect.github.com/dat
 amodel-code-generator/datamodel-code-generator/issues/7583">#7583</a>)</li>
   <li>Types written after a module aliases an import name the alias, so the 
module imports - Where a field name of a module hides an import (Item has a 
field date), the module imports it as from datetime import date as 
date_aliased. A type a --type-overrides key wrote after that (a class or 
annotation override, scoped, model-level or with 
--type-overrides-replace-whole-type), or a root type --collapse-root-models 
inlined from another module, named the bare date. In a Pydantic class body that 
name is the default of the field date (None), so when: date | None failed at 
import with TypeError: unsupported operand type(s) for |, and where no other 
type of the module named the alias the import was dropped too. Such a type now 
names the alias (when: date_aliased | None) and the import stays. The other way 
round, a root of a module that aliased date, inlined by --collapse-root-models 
into a module that did not, carried the alias along: that module imported only 
date as date_aliased and left
  its own date fields unbound; it now writes date throughout, and a root typed 
by a module-qualified x-python-import name (Outer.Kind of an aliased module 
import) takes the receiving module's own import line and qualifier the same 
way, as it already did when that module was prepared first. Only modules that 
failed to import or imported another module's alias change; class names, field 
names, field order and the override's type are unchanged, and dataclasses, 
TypedDict and msgspec output, where nothing aliases date, keeps its output. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7616";>#7616</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7601";>#7601</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7604";>#7604</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7615";>#7615</a>)</li>
   <li>A root model class leaves the bases Pydantic refuses for it, so the 
module imports - Under --use-root-model-type-alias a constrained root is a 
RootModel class. A model with its own properties and an allOf of it (class 
Wrapper(KeyPatternCount) with a field), or an allOf of it and another model 
(class Mixed(Labels, Owner)), subclassed it and failed at import (Unexpected 
field ...; only 'root' is allowed), and under --use-generic-base-class the 
class took the generated base (class Tags(BaseModel[list[str]])) and failed 
with a TypeError. Such a model now takes its default base, as without 
--use-root-model-type-alias and as 0.79.0 wrote it, and the root class keeps 
RootModel. A child that adds nothing (class PodLabels(Labels)) keeps the root 
class as its base and is a root model class itself: it takes no generated base 
beside it, and a model with its own properties over it takes its default base 
(class Leaf(Mid) failed at import). Only modules that failed at import change; 
class na
 mes, field names, field order and the values of valid payloads are those of 
the output without --use-root-model-type-alias. (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7633";>#7633</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7619";>#7619</a>,
 <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7626";>#7626</a>)</li>
   </ul>
   <!-- raw HTML omitted -->
   <h2>What's Changed</h2>
   <ul>
   <li>Stamp the upgrade guide entries of 0.104.0 by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/7599";>datamodel-code-generator/datamodel-code-generator#7599</a></li>
   <li>Allow arbitrary types where an input model's field type needs them by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/7595";>datamodel-code-generator/datamodel-code-generator#7595</a></li>
   <li>Import the models of a forwarded-class submodule in every reader by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/7596";>datamodel-code-generator/datamodel-code-generator#7596</a></li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/fc638d117ecec882cedce30b9298c428ad01c68f";><code>fc638d1</code></a>
 Name the suffixed root of two same-named definitions in the record (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7634";>#7634</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/62eb5191863771d079b352c3f4d2b5c8abd87f33";><code>62eb519</code></a>
 Keep constrained map roots as classes under an option (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7633";>#7633</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/bf955be9a43da57a020414bd55c9cc6f0237459e";><code>bf955be</code></a>
 Alias a module an inherited field name hides on Pydantic 2.0 (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7631";>#7631</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/3b1bf83c8a26e5ef78d0e095b72830b04501348d";><code>3b1bf83</code></a>
 Target Python 3.11 in the cases that name SSLProtocolState (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7632";>#7632</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/45238ae3873f0c576280c0ff09abb3cacadc35b5";><code>45238ae</code></a>
 Write an allOf wrapper of a Python class as a root (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7627";>#7627</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/7becef51bccfb5d67bb8a13a72a97852bbb5f098";><code>7becef5</code></a>
 Write a definition that only holds a class as a root of it (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7622";>#7622</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/b77a860d95ad192c239ef80685019aee7f94806d";><code>b77a860</code></a>
 Choose a constrained root's class form in one place (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7621";>#7621</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/f62a1cd8d7980a27d0311fef3c34332b679a6672";><code>f62a1cd</code></a>
 Allow arbitrary types for custom type path classes and add a root option (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7620";>#7620</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/f6faa3fb080b84bfda557ba58c7a2698fa36bc80";><code>f6faa3f</code></a>
 Spell the import alias in types a later pass writes (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7616";>#7616</a>)</li>
   <li><a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/a2318564ba4070343fdd0beca0bc967802bca7f1";><code>a231856</code></a>
 Refuse bad pass and fact table entries when the tables are built (<a 
href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/7617";>#7617</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/datamodel-code-generator/datamodel-code-generator/compare/0.99.0...0.105.0";>compare
 view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=datamodel-code-generator&package-manager=pip&previous-version=0.99.0&new-version=0.105.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   Dependabot will resolve any conflicts with this PR as long as you don't 
alter it yourself. You can also trigger a rebase manually by commenting 
`@dependabot rebase`.
   
   [//]: # (dependabot-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   You can trigger Dependabot actions by commenting on this PR:
   - `@dependabot rebase` will rebase this PR
   - `@dependabot recreate` will recreate this PR, overwriting any edits that 
have been made to it
   - `@dependabot show <dependency name> ignore conditions` will show all of 
the ignore conditions of the specified dependency
   - `@dependabot ignore this major version` will close this PR and stop 
Dependabot creating any more for this major version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this minor version` will close this PR and stop 
Dependabot creating any more for this minor version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this dependency` will close this PR and stop 
Dependabot creating any more for this dependency (unless you reopen the PR or 
upgrade to it yourself)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to