-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency pydantic to v2 #4
base: main
Are you sure you want to change the base?
Conversation
Lint checks failed for b9cc6f8
src/github_runner_manager/metrics/runner.py:49: error: Unexpected keyword argument "regex" for "Field" [call-arg]
|
Unit tests failed for b9cc6f8
============================= test session starts ============================== ==================================== ERRORS ==================================== For further information visit https://errors.pydantic.dev/2.9/u/removed-kwargs For further information visit https://errors.pydantic.dev/2.9/u/removed-kwargs For further information visit https://errors.pydantic.dev/2.9/u/removed-kwargs -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
Test coverage for b9cc6f8
Static code analysis report
|
This PR contains the following updates:
< 2
-><3
Release Notes
pydantic/pydantic (pydantic)
v2.9.2
Compare Source
GitHub release
What's Changed
Fixes
Callable
discriminators by @sydney-runkle in #10400PlainValidator
by @Viicos in #10427Union
serialization warnings by @sydney-runkle in pydantic/pydantic-core#1449_IncEx
type alias, only allowTrue
by @Viicos in #10414ZoneInfo
validation with various invalid types by @sydney-runkle in #10408v2.9.1
Compare Source
GitHub release
What's Changed
Fixes
annotated-types
bound to>=0.6.0
by @sydney-runkle in #10327tzdata
install requirement into optionaltimezone
dependency by @jakob-keller in #10331IncExc
type alias definition by @Viicos in #10339v2.9.0
Compare Source
GitHub release
The code released in v2.9.0 is practically identical to that of v2.9.0b2.
What's Changed
Packaging
ruff
tov0.5.0
andpyright
tov1.1.369
by @sydney-runkle in #9801pydantic-extra-types
tov2.9.0
by @sydney-runkle in #9832pdm v2.18.1
by @Viicos in #10138v1
version stub tov1.10.18
by @sydney-runkle in #10214pydantic-core
tov2.23.2
by @sydney-runkle in #10311New Features
ZoneInfo
by @Youssefares in #9896Config.val_json_bytes
by @josh-newman in #9770complex
number by @changhc in #9654annotated_types.Not
by @aditkumar72 in #10210WithJsonSchema
to inject$ref
s w/http
orhttps
links by @dAIsySHEng1 in #9863PathLike
types by @nix010 in #9764str
orcallable
discriminators to select the correct serializer by @sydney-runkle in in pydantic/pydantic-core#1397Changes
dict
typejson_schema_extra
by @sydney-runkle in #9792pattern
for incompatible types by @sydney-runkle in #10158'allOf'
JSON schema workarounds by @dpeachey in #10029typed_dict_cls
data fromCoreMetadata
by @sydney-runkle in #10180Examples
class by @Viicos in #10181initial_metadata
from internal metadata construct by @sydney-runkle in #10194re.Pattern.search
instead ofre.Pattern.match
for consistency withrust
behavior by @tinez in pydantic/pydantic-core#1368pydantic-core
serialization warning by @BoxyUwU in pydantic/pydantic-core#1377pydantic-core
, changemetadata
type hint in core schemas fromAny
->Dict[str, Any] | None
by @sydney-runkle in pydantic/pydantic-core#1411self
isn't returned from model validator by @sydney-runkle in #10255Performance
BaseModel
by @sydney-runkle in #10013Minor Internal Improvements
multiple_of_validator()
by 31% inpydantic/_internal/_validators.py
by @misrasaurabh1 in #9839ModelPrivateAttr.__set_name__()
by 18% inpydantic/fields.py
by @misrasaurabh1 in #9841dataclass()
by 7% inpydantic/dataclasses.py
by @misrasaurabh1 in #9843_field_name_for_signature
by 37% inpydantic/_internal/_signature.py
by @misrasaurabh1 in #9951GenerateSchema._unpack_refs_defs
by 26% inpydantic/_internal/_generate_schema.py
by @misrasaurabh1 in #9949apply_each_item_validators
by 100% inpydantic/_internal/_generate_schema.py
by @misrasaurabh1 in #9950ConfigWrapper.core_config
by 28% inpydantic/_internal/_config.py
by @misrasaurabh1 in #9953Fixes
use_enum_values
onLiteral
types by @kwint in #9787BaseModel/RootModel
inheritance by @dmontagu in #9913str
type annotation withAny
in validator factories in documentation on validators by @maximilianfellhuber in #9885ComputedFieldInfo.wrapped_property
pointer when a property setter is assigned by @tlambert03 in #9892main.IncEnx
by @tlambert03 in #9924type[Annotated[...]]
by @Viicos in #9932mypy
plugin: handle frozen fields on a per-field basis by @dmontagu in #9935invalid-annotated-type
error code by @sydney-runkle in #9948uuid
,url
, andip
types by @sydney-runkle in #9975date
schemas to_generate_schema.py
by @sydney-runkle in #9976decimal.Decimal
validation to_generate_schema.py
by @sydney-runkle in #9977_std_types_schema.py
by @sydney-runkle in #9959GenerateSchema.match_type
options by @sydney-runkle in #9961dataclass
ignoringdefault_factory
passed in Annotated by @kc0506 in #9971Sequence
ignoringdiscriminator
by @kc0506 in #9980IPvAnyAddress
andIPvAnyInterface
by @haoyun in #9990mypy
plugin forfrom_orm
check requiring from_attributes=True config by @radekwlsk in #9938strict=True
to__init__
inmypy
plugin by @kc0506 in #9998deque
annotations by @sydney-runkle in #10018__pydantic_extra__
annotation in specific circumstances by @Viicos in #10070frozen
enforcement fordataclasses
by @sydney-runkle in #10066__get_pydantic_core_schema__
signature by @Viicos in #10075is_annotated
consistently by @Viicos in #10095PydanticDeprecatedSince26
typo by @kc0506 in #10101pyright
tests, refactor model decorators signatures by @Viicos in #10092ip
serialization logic by @sydney-runkle in #10112dataclasses
by @mochi22 in #10082when_used
set to'json-unless-none'
and the default value isNone
by @Viicos in #10121ImportString
special cases by @sydney-runkle in #10137__
prefixed annotations by @sydney-runkle in #10136nullable
schemas withserialization
schema available during JSON Schema generation by @Viicos in #10132BaseModel
annotations by @kc0506 in #10110PrivateAttr
withAnnotated
by @Viicos in #10157number
type for literal and enum schemas by @Viicos in #10172Mapping
andMutableMapping
annotations to use mapping schema instead of dict schema by @sydney-runkle in #10020field_serializer
with computed field when using*
by @nix010 in pydantic/pydantic-core#1349Union
serializer before inference by @sydney-runkle in pydantic/pydantic-core#1398float
serialization behavior instrict
mode by @sydney-runkle in pydantic/pydantic-core#1400exactness
into Decimal validation logic to improve union validation behavior by @sydney-runkle in in pydantic/pydantic-core#1405pytest.warns()
by @mgorny in #10241ModelMetaclass
by @Viicos in #10242__init__
by @Viicos in #10264BigInt
serialization forint
subclasses by @kxx317 in pydantic/pydantic-core#1417info
by @sydney-runkle in #10277__pydantic_complete__
is set when rebuildingdataclasses
by @Viicos in #10291schema_generator
config value inTypeAdapter
by @sydney-runkle in #10300New Contributors
pydantic
pydantic-core
v2.8.2
: (2024-07-03)Compare Source
What's Changed
Fixes
Full Changelog: pydantic/pydantic@v2.8.1...v2.8.2
v2.8.1
: (2024-07-03)Compare Source
What's Changed
Packaging
ruff
tov0.5.0
andpyright
tov1.1.369
by @sydney-runkle in https://github.com/pydantic/pydantic/pull/9801pydantic-core
tov2.20.1
,pydantic-extra-types
tov2.9.0
by @sydney-runkle in https://github.com/pydantic/pydantic/pull/9832Fixes
to_snake
from v2.7 -> v2.8 by @sydney-runkle in https://github.com/pydantic/pydantic/pull/9812New Contributors
Full Changelog: pydantic/pydantic@v2.8.0...v2.8.1
v2.8.0
Compare Source
GitHub release
The code released in v2.8.0 is functionally identical to that of v2.8.0b1.
What's Changed
Packaging
v1.1.367
and add type checking tests for pipeline API by @adriangb in #9674pydantic.v1
stub tov1.10.17
by @sydney-runkle in #9707v2.8.0b1
by @sydney-runkle in #9741pydantic-core
tov2.20.0
by @sydney-runkle in #9745pdm
version used forpdm.lock
to v2.16.1 by @sydney-runkle in #9761ruff
v0.4.8
by @Viicos in #9585New Features
defer_build
forTypeAdapter
by @MarkusSintonen in #8939deprecated
field in json schema by @NeevCohen in #9298fail_fast
feature by @uriyyo in #9708ser_json_inf_nan='strings'
mode to produce valid JSON by @josh-newman in pydantic/pydantic-core#1307Changes
Annotated
field by @nix010 in #9170__validators__
values increate_model
by @sydney-runkle in #9697smart
union matching logic by @sydney-runkle in pydantic/pydantic-core#1322You can read more about our
smart
union matching logic here. In some cases, if the old behavioris desired, you can switch to
left-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by @misrasaurabh1 in #9653_get_all_json_refs()
by 34% inpydantic/json_schema.py
by @misrasaurabh1 in #9650is_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by @misrasaurabh1 in #9652to_snake()
by 27% inpydantic/alias_generators.py
by @misrasaurabh1 in #9747unwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by @misrasaurabh1 in #9727Fixes
__spec__.parent
with__package__
by @hramezani in #9331Sequence
type by @anesmemisevic in #9303_frame_depth
by @Viicos in #9353ImportString
json schema compatible by @amitschang in #9344PrivateAttr
) from__init__
signature in type checkers by @idan22moral in #9293TypeVar
defaults robust to the CPythonPEP-696
implementation by @AlexWaygood in #9426PlainSerializer
with builtin types by @Viicos in #9450strict
specification forStringConstraint(strict=False)
by @vbmendes in #9476Self
where possible by @Viicos in #9479RootModel.model_construct
signature in themypy
plugin by @Viicos in #9480validation_context
by @OhioDschungel6 in #9508dump_json
/dump_python
by @alexcouper in #9495Field()
constructor by @bjmc in #9484TypeAdapter
by @Viicos in #9570__setstate__
of BaseModel by @anhpham1509 in #9584PEP 746
by @adriangb in #9587TypeVar
fields by @dmontagu in #9606regex
flags in validation and json schema by @sydney-runkle in #9591IpvAnyAddress
by @sydney-runkle in #9640__pydantic_extra__
by @dmontagu in #9659Optional[Decimal]
by @lazyhope in #9754validate_call
type params fix by @sydney-runkle in #9760re.Pattern
object in regex patterns to allow for regex flags by @sydney-runkle in pydantic/pydantic-core#1318New Contributors
v2.7.4
Compare Source
Github release
What's Changed
Packaging
pydantic.v1
tov1.10.16
reference by @sydney-runkle in #9639Fixes
recursive_guard
as kwarg inFutureRef._evaluate
by @vfazio in #9612v2.7.3
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
tov2.18.4
by @sydney-runkle in #9550Fixes
v2.7.2
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
tov2.18.3
by @sydney-runkle in #9515Fixes
__spec__.parent
with__package__
by @hramezani in #9331int
s with leading unary minus by @RajatRajdeep in pydantic/pydantic-core#1291str
subclass validation for enums by @sydney-runkle in [pydantic/pydantic-core#1273]https://github.com/pydantic/pydantic-core/pull/1273BigInt
s inLiteral
s andEnum
s by @samuelcolvin in [pydantic/pydantic-core#1297]https://github.com/pydantic/pydantic-core/pull/1297str
subclass as input by @davidhewitt in [pydantic/pydantic-core#1296]https://github.com/pydantic/pydantic-core/pull/1296v2.7.1
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
tov2.18.2
by @sydney-runkle in #9307New Features
Changes
…
by @LouisGobert in #9214Fixes
validation_alias
behavior withmodel_construct
forAliasChoices
andAliasPath
by @sydney-runkle in #9223typing.Literal
and import it outside the TYPE_CHECKING block by @frost-nzcr4 in #9232Secret
serialization schema, applicable for unions by @sydney-runkle in #9240strict
application tofunction-after
withuse_enum_values
by @sydney-runkle in #9279model_construct
on a class which definesmodel_post_init
fails withAttributeError
by @babygrimes in #9168model_json_schema
with config types by @NeevCohen in #9287int
by @samuelcolvin in pydantic/pydantic-core#1269int
s with leading unary plus by @cknv in pydantic/pydantic-core#1272extra != 'ignore'
andfrom_attributes=True
by @davidhewitt in pydantic/pydantic-core#1276Enum
'smissing
function asValidationError
by @sydney-runkle in pydantic/pydantic-core#1274Iterable
validation by @davidhewitt in pydantic/pydantic-core#1271New Contributors
v2.7.0
Compare Source
GitHub release
The code released in v2.7.0 is practically identical to that of v2.7.0b1.
What's Changed
Packaging
pyproject.toml
sections by @Viicos in #8899pydantic-core
tov2.18.1
by @sydney-runkle in #9211jiter
v0.2.0
by @samuelcolvin in pydantic/pydantic-core#1250New Features
FieldInfo.description
by @Viicos in #6563with_config
decorator to comply with typing spec by @Viicos in #8611ByteSize.human_readable
by @jks15satoshi in #8706Secret
base type by @conradogarciaberrotaran in #8519Sphinx
inventories for cross references in docs by @Viicos in [#8682](https://redirect.github.com/pydantiConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.