chore(deps): update minor updates (master) #84
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
692973e
->11bd719
1.11.2
->1.13.0
4.3.2
->4.3.6
1.8.3
->1.8.4
2.9.1
->2.10.1
4.8.0
->4.10.1
0.6.4
->0.7.4
^0.6.0
->^0.7.0
Release Notes
python/mypy (mypy)
v1.13.0
Compare Source
v1.12.1
Compare Source
os.path
stubs affecting use ofos.PathLike[Any]
(Shantanu, PR 17995)v1.12.0
Compare Source
tox-dev/platformdirs (platformdirs)
v4.3.6
Compare Source
What's Changed
Full Changelog: tox-dev/platformdirs@4.3.5...4.3.6
v4.3.5
Compare Source
What's Changed
Full Changelog: tox-dev/platformdirs@4.3.4...4.3.5
v4.3.4
Compare Source
What's Changed
Full Changelog: tox-dev/platformdirs@4.3.3...4.3.4
v4.3.3
Compare Source
What's Changed
New Contributors
Full Changelog: tox-dev/platformdirs@4.3.2...4.3.3
python-poetry/poetry (poetry)
v1.8.4
Compare Source
Added
Changed
virtualenv>=20.26.6
to mitigate potential command injection when runningpoetry shell
in untrusted projects (#9757).poetry-core (
1.9.1
)3.13
to the list of available Python versions (#747).pydantic/pydantic (pydantic)
v2.10.1
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
version tov2.27.1
by @sydney-runkle in #10938Fixes
TypeAdapter
by @Viicos in #10893default_factory
utils by @sydney-runkle in #10909model_fields
andmodel_computed_fields
by @sydney-runkle in #10911dataclass
es by @sydney-runkle in #10928globals
of the function when evaluating the return type of serializers andcomputed_field
s by @Viicos in #10929''
by @sydney-runkle in #10936python
mode serialization forcomplex
inference by @sydney-runkle in pydantic-core#1549New Contributors
v2.10.0
Compare Source
The code released in v2.10.0 is practically identical to that of v2.10.0b2.
GitHub release
See the v2.10 release blog post for the highlights!
What's Changed
Packaging
pydantic-core
tov2.27.0
by @sydney-runkle in #10825New Features
fractions.Fraction
by @sydney-runkle in #10318Hashable
for json validation by @sydney-runkle in #10324SocketPath
type forlinux
systems by @theunkn0wn1 in #10378examples
by @sydney-runkle in #10417defer_build
for Pydantic dataclasses by @Viicos in #10313TypedDict
to type hint variadic keyword arguments with@validate_call
by @Viicos in #10416protected_namespaces
by @sydney-runkle in #10522propertyNames
in JSON schema by @FlorianSW in #10478__replace__
protocol for Python 3.13+ support by @sydney-runkle in #10596sort
method for JSON schema generation by @sydney-runkle in #10595@validate_call
callable argument by @kc0506 in #10627experimental_allow_partial
support by @samuelcolvin in #10748ValidationError
andPydanticCustomError
by @Youssefares in pydantic/pydantic-core#1413trailing-strings
support toexperimental_allow_partial
by @sydney-runkle in #10825rebuild()
method forTypeAdapter
and simplifydefer_build
patterns by @sydney-runkle in #10537TypeAdapter
instance repr by @sydney-runkle in #10872Changes
SchemaGenerator
until interface is more stable by @sydney-runkle in #10303defer_build
onTypeAdapters
, removing experimental flag by @sydney-runkle in #10329mro
of generic subclass by @kc0506 in #10100b64decode
andb64encode
forBase64Bytes
type by @sydney-runkle in #10486@dataclass
decorator and with the__pydantic_config__
attribute by @sydney-runkle in #10406Ellipsis
(...) withField
by @Viicos in #10661Literal
s andEnums
by @Viicos in #10692Any
orNever
when replacing type variables by @Viicos in #10338base64
bytes by @bschoenmaeckers in pydantic/pydantic-core#1448Performance
CoreMetadata
refactor with an emphasis on documentation, schema build time performance, and reducing complexity by @sydney-runkle in #10675Fixes
computed_field
withfield_serializer
by @nix010 in #10390Predicate
issue inv2.9.0
by @sydney-runkle in #10321annotated-types
bound by @sydney-runkle in #10327tzdata
install requirement into optionaltimezone
dependency by @jakob-keller in #10331namedtuple
core schemas by @Viicos in #10337IncEx
type alias definition by @Viicos in #10339ModelMetaclass.mro
by @Viicos in #10372computed_field
s by @Viicos in #10391inspect.iscoroutinefunction
works on coroutines decorated with@validate_call
by @MovisLi in #10374NameError
when usingvalidate_call
with PEP 695 on a class by @kc0506 in #10380ZoneInfo
with various invalid types by @sydney-runkle in #10408PydanticUserError
on emptymodel_config
with annotations by @cdwilson in #10412_IncEx
type alias, only allowTrue
by @Viicos in #10414PlainValidator
by @Viicos in #10427json_schema_input_type
by @Viicos in #10439Representation
by @Viicos in #10480max_digits
anddecimal_places
) by @sydney-runkle in #10506__pydantic_core_schema__
from the current class during schema generation by @Viicos in #10518stacklevel
on deprecation warnings forBaseModel
by @sydney-runkle in #10520stacklevel
inBaseModel.__init__
by @Viicos in #10526ConfigWrapper.core_config
to take the title directly by @Viicos in #10562mode='python'
by @sydney-runkle in #10594Base64Etc
types by @sydney-runkle in #10584validate_call
ignoringField
inAnnotated
by @kc0506 in #10610Self
is invalid by @kc0506 in #10609core_schema.InvalidSchema
instead of metadata injection + checks by @sydney-runkle in #10523type
withtyping.Self
and type aliases by @kc0506 in #10621Field
andPrivateAttr
functions by @Viicos in #10651mypy
plugin implementation by @Viicos in #10669typing_extensions
variant ofTypeAliasType
by @Daraan in #10713BaseModel.model_copy()
by @Viicos in #10751isinstance
behavior for urls by @sydney-runkle in #10766cached_property
can be set on Pydantic models by @Viicos in #10774host_required
for URLs by @Viicos in pydantic/pydantic-core#1488coerce_numbers_to_str
enabled and string has invalid Unicode character by @andrey-berenda in pydantic/pydantic-core#1515complex
values inEnum
s by @changhc in pydantic/pydantic-core#1524_typing_extra
module by @Viicos in #10725bytearray
toTypeAdapter.validate_json
signature by @samuelcolvin in #10802Field
by @Viicos in #10816validate_call
by @sydney-runkle in #10807IncEx
type alias to be compatible with mypy by @Viicos in #10813__signature__
a lazy property, do not deepcopy defaults by @Viicos in #10818__signature__
lazy for dataclasses, too by @sydney-runkle in #10832AnyUrl
to preserve behavior from v2.9 by @sydney-runkle in #10856New Contributors
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 #10408mongodb/mongo-python-driver (pymongo)
v4.10.1
: PyMongo 4.10.1Compare Source
Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-10-1-released/299573
v4.10.0
: PyMongo 4.10.0Compare Source
Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-10-0-released/299474
v4.9.2
: PyMongo 4.9.2Compare Source
pymongo.asynchronous.mongo_client.AsyncMongoClient
could deadlock.pymongo.results.UpdateResult.did_upsert
would raise a TypeError.v4.9.1
: PyMongo 4.9.1Compare Source
Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-9-released/297833
v4.9
Compare Source
astral-sh/ruff (ruff)
v0.7.4
Compare Source
Preview features
flake8-datetimez
] Detect usages ofdatetime.max
/datetime.min
(DTZ901
) (#14288)flake8-logging
] Implementroot-logger-calls
(LOG015
) (#14302)flake8-no-pep420
] Detect empty implicit namespace packages (INP001
) (#14236)flake8-pyi
] Add "replace withSelf
" fix (PYI019
) (#14238)perflint
] Implement quick-fix formanual-list-comprehension
(PERF401
) (#13919)pylint
] Implementshallow-copy-environ
(W1507
) (#14241)ruff
] Implementnone-not-at-end-of-union
(RUF036
) (#14314)ruff
] Implementationunsafe-markup-call
fromflake8-markupsafe
plugin (RUF035
) (#14224)ruff
] Report problems forattrs
dataclasses (RUF008
,RUF009
) (#14327)Rule changes
flake8-boolean-trap
] Exclude dunder methods that define operators (FBT001
) (#14203)flake8-pyi
] Add "replace withSelf
" fix (PYI034
) (#14217)flake8-pyi
] Always autofixduplicate-union-members
(PYI016
) (#14270)flake8-pyi
] Improve autofix for nested and mixed type unions forunnecessary-type-union
(PYI055
) (#14272)flake8-pyi
] Mark fix as unsafe when type annotation contains comments forduplicate-literal-member
(PYI062
) (#14268)Server
ruff.configuration
(#14352)Bug fixes
PLC014
(useless-import-alias
) andI002
(missing-required-import
) by consideringlint.isort.required-imports
forPLC014
(#14287)flake8-type-checking
] Skip quoting annotation if it becomes invalid syntax (TCH001
)flake8-pyi
] Avoid usingtyping.Self
in stub files pre-Python 3.11 (PYI034
) (#14230)flake8-pytest-style
] Flagpytest.raises
call with keyword argumentexpected_exception
(PT011
) (#14298)flake8-simplify
] Infer "unknown" truthiness for literal iterables whose items are all unpacks (SIM222
) (#14263)flake8-type-checking
] Fix false positives fortyping.Annotated
(TCH001
) (#14311)pylint
] Allowawait
at the top-level scope of a notebook (PLE1142
) (#14225)pylint
] Fix miscellaneous issues inawait-outside-async
detection (PLE1142
) (#14218)pyupgrade
] Avoid applying PEP 646 rewrites in invalid contexts (UP044
) (#14234)pyupgrade
] Detect permutations in redundant open modes (UP015
) (#14255)refurb
] Avoid triggeringhardcoded-string-charset
for reordered sets (FURB156
) (#14233)refurb
] Further special cases added toverbose-decimal-constructor
(FURB157
) (#14216)refurb
] UseUserString
instead of non-existentUserStr
(FURB189
) (#14209)ruff
] Avoid treating lowercase letters as# noqa
codes (RUF100
) (#14229)ruff
] Do not report whenOptional
has no type arguments (RUF013
) (#14181)Documentation
F704
,PLE1142
(#14266)v0.7.3
Compare Source
Preview features
flake8-pyi
] Include all Python file types forPYI006
andPYI066
(#14059)flake8-simplify
] Implementsplit-of-static-string
(SIM905
) (#14008)refurb
] Implementsubclass-builtin
(FURB189
) (#14105)ruff
] Improve diagnostic messages and docs (RUF031
,RUF032
,RUF034
) (#14068)Rule changes
B033
,PLC0208
) (#14064)eradicate
] Better detection of IntelliJ language injection comments (ERA001
) (#14094)flake8-pyi
] Add autofix fordocstring-in-stub
(PYI021
) (#14150)flake8-pyi
] Updateduplicate-literal-member
(PYI062
) to alawys provide an autofix (#14188)pyflakes
] Detect items that hash to same value in duplicate dictionaries (F601
) (#14065)ruff
] Fix false positive for decorators (RUF028
) (#14061)Bug fixes
# noqa
(#12809)eradicate
] ignore# language=
in commented-out-code rule (ERA001) (#14069)flake8-bugbear
] - do not runmutable-argument-default
on stubs (B006
) (#14058)flake8-builtins
] Skip lambda expressions inbuiltin-argument-shadowing (A002)
(#14144)flake8-comprehension
] Also remove trailing comma while fixingC409
andC419
(#14097)flake8-simplify
] Allowopen
without context manager inreturn
statement (SIM115
) (#14066)pylint
] Respect hash-equivalent literals initeration-over-set
(PLC0208
) (#14063)pylint
] Update known dunder methods for Python 3.13 (PLW3201
) (#14146)pyupgrade
] - ignore kwarg unpacking forUP044
(#14053)refurb
] Parse more exotic decimal strings inverbose-decimal-constructor
(FURB157
) (#14098)Documentation
v0.7.2
Compare Source
Preview features
pyupgrade
] Add PEP 646Unpack
conversion to*
with fix (UP044
) (#13988)Rule changes
known_stdlibs.rs
with stdlibs 2024.10.25 (#13963)flake8-no-pep420
] Skip namespace package enforcement for PEP 723 scripts (INP001
) (#13974)Server
Bug fixes
flake8-type-checking
] Fix false positive forsingledispatchmethod
(TCH003
) (#13941)flake8-type-checking
] Treat return type ofsingledispatch
as runtime-required (TCH003
) (#13957)Documentation
flake8-simplify
] Include caveats of enablingif-else-block-instead-of-if-exp
(SIM108
) (#14019)v0.7.1
Compare Source
Preview features
E221
andE222
to flag missing or extra whitespace around==
operator (#13890)pylint
] Restrictiteration-over-set
to only work on sets of literals (PLC0208
) (#13731)Rule changes
flake8-type-checking
] Support auto-quoting when annotations contain quotes (#11811)Server
Bug fixes
ARG002
compatible withEM101
when raisingNotImplementedError
(#13714)Other changes
v0.7.0
Compare Source
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
PT001
andPT023
now default to omitting the decorator parentheses when there are no arguments(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
useless-try-except
rule (in ourtryceratops
category) has been recoded fromTRY302
toTRY203
(#13502). This ensures Ruff's code is consistent withthe same rule in the
tryceratops
linter.lint.allow-unused-imports
setting has been removed (#13677). Uselint.pyflakes.allow-unused-imports
instead.
Formatter preview style
Preview linter features
refurb
] implementhardcoded-string-charset
(FURB156) (#13530)refurb
] Count codepoints not bytes forslice-to-remove-prefix-or-suffix (FURB188)
(#13631)Rule changes
pylint
] MarkPLE1141
fix as unsafe (#13629)flake8-async
] Consider async generators to be "checkpoints" forcancel-scope-no-checkpoint
(ASYNC100
) (#13639)flake8-bugbear
] Do not suggest setting parameterstrict=
toFalse
inB905
diagnostic message (#13656)flake8-todos
] Only flag the word "TODO", not words starting with "todo" (TD006
) (#13640)pycodestyle
] Fix whitespace-related false positives and false negatives inside type-parameter lists (E231
,E251
) (#13704)flake8-simplify
] Stabilize preview behavior forSIM115
so that the rule can detect filesbeing opened from a wider range of standard-library functions (#12959).
CLI
--statistics
command (#13774)Bug fixes
pyflakes
] Allowipytest
cell magic (F401
) (#13745)flake8-use-pathlib
] FixPTH123
false positive whenopen
is passed a file descriptor (#13616)flake8-bandit
] Detect patterns from multi line SQL statements (S608
) (#13574)flake8-pyi
] - Fix dropped expressions inPYI030
autofix (#13727)v0.6.9
Compare Source
Preview features
refurb
] MarkFURB118
fix as unsafe (#13613)Rule changes
pydocstyle
] Don't raiseD208
when last line is non-empty (#13372)pylint
] Preserve trivia (i.e. comments) inPLR5501
autofix (#13573)Configuration
pyflakes
] Addallow-unused-imports
setting forunused-import
rule (F401
) (#13601)Bug fixes
flake8-bugbear
] Avoid short circuitingB017
for multiple context managers (#13609)pylint
] Do not offer an invalid fix forPLR1716
when the comparisons contain parenthesis (#13527)pyupgrade
] FixUP043
to apply tocollections.abc.Generator
andcollections.abc.AsyncGenerator
(#13611)refurb
] Fix handling of slices in tuples forFURB118
, e.g.,x[:, 1]
(#13518)Documentation
astral-sh/ruff-action
(#13551)v0.6.8
Compare Source
Preview features
match case
clauses (#13510)if
guards inmatch..case
clauses (#13513)ruff analyze graph
(#13486)pylint
] Implementboolean-chained-comparison
(R1716
) (#13435)Rule changes
lake8-simplify
] DetectSIM910
when using variadic keyword arguments, i.e.,**kwargs
(#13503)pyupgrade
] Avoid false negatives with non-reference shadowed bindings of loop variables (UP028
) (#13504)Bug fixes
*args
(#13512)Performance
BTreeSets
in module resolver (#13440)v0.6.7
Compare Source
Preview features
exclude
support toruff analyze
(#13425)Rule changes
pycodestyle
] Fix: Don't autofix if the first line ends in a question mark? (D400) (#13399)Bug fixes
lint.exclude
in ruff check--add-noqa
(#13427)Performance
forget
for module resolver database (#13438)v0.6.6
Compare Source
Preview features
Configuration
📅 Schedule: Branch creation - "every 4th week on Thursday before 10am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.