Sourced from pydantic's releases.
v2.10.3 2024-12-03
What's Changed
Fixes
- Set fields when
defer_build
is set on Pydantic dataclasses by@Viicos
in #10984- Do not resolve the JSON Schema reference for
dict
core schema keys by@Viicos
in #10989- Use the globals of the function when evaluating the return type for
PlainSerializer
andWrapSerializer
functions by@Viicos
in #11008- Fix host required enforcement for urls to be compatible with v2.9 behavior by
@sydney-runkle
in #11027- Add a
default_factory_takes_validated_data
property toFieldInfo
by@Viicos
in #11034- Fix url json schema in
serialization
mode by@sydney-runkle
in #11035Full Changelog: https://github.com/pydantic/pydantic/compare/v2.10.2...v2.10.3
v2.10.2 2024-11-26
What's Changed
Fixes
- Only evaluate
FieldInfo
annotations if required during schema building by@Viicos
in #10769- Do not evaluate annotations for private fields by
@Viicos
in #10962- Support serialization as any for
Secret
types andUrl
types by@sydney-runkle
in #10947- Fix type hint of
Field.default
to be compatible with Python 3.8 and 3.9 by@Viicos
in #10972- Add hashing support for URL types by
@sydney-runkle
in #10975- Hide
BaseModel.__replace__
definition from type checkers by@Viicos
in 10979Full Changelog: https://github.com/pydantic/pydantic/compare/v2.10.1...v2.10.2
Sourced from pydantic's changelog.
v2.10.3 (2024-12-03)
What's Changed
Fixes
- Set fields when
defer_build
is set on Pydantic dataclasses by@Viicos
in #10984- Do not resolve the JSON Schema reference for
dict
core schema keys by@Viicos
in #10989- Use the globals of the function when evaluating the return type for
PlainSerializer
andWrapSerializer
functions by@Viicos
in #11008- Fix host required enforcement for urls to be compatible with v2.9 behavior by
@sydney-runkle
in #11027- Add a
default_factory_takes_validated_data
property toFieldInfo
by@Viicos
in #11034- Fix url json schema in
serialization
mode by@sydney-runkle
in #11035v2.10.2 (2024-11-25)
What's Changed
Fixes
- Only evaluate FieldInfo annotations if required during schema building by
@Viicos
in #10769- Do not evaluate annotations for private fields by
@Viicos
in #10962- Support serialization as any for
Secret
types andUrl
types by@sydney-runkle
in #10947- Fix type hint of
Field.default
to be compatible with Python 3.8 and 3.9 by@Viicos
in #10972- Add hashing support for URL types by
@sydney-runkle
in #10975- Hide
BaseModel.__replace__
definition from type checkers by@Viicos
in 10979
c326748
Prep for v2.10.3 release (#11038)68d35bf
Fix url json schema in serialization
mode (#11035)fa69b4c
Add a default_factory_takes_validated_data
property to
FieldInfo
(#11034)435a703
Fix host required enforcement for urls to be compatible with v2.9
behavior (#...b2c4548
Use the globals of the function when evaluating the return type for
`PlainSer...cb962c1
Do not resolve the JSON Schema reference for dict
core
schema keys (#10989)10ebcdf
Set fields when defer_build
is set on Pydantic dataclasses
(#10984)fe32515
Prepare for v2.10.2 release (#10982)226cfaf
Hide BaseModel.__replace__
definition from type checkers
(#10979)02229a6
hashing support for urls (#10975)Sourced from pytest's releases.
8.3.4
pytest 8.3.4 (2024-12-01)
Bug fixes
#12592: Fixed
KeyError
{.interpreted-text role="class"} crash when using--import-mode=importlib
in a directory layout where a directory contains a child directory with the same name.#12818: Assertion rewriting now preserves the source ranges of the original instructions, making it play well with tools that deal with the
AST
, like executing.#12849: ANSI escape codes for colored output now handled correctly in
pytest.fail
{.interpreted-text role="func"} with [pytrace=False]{.title-ref}.#9353:
pytest.approx
{.interpreted-text role="func"} now uses strict equality when given booleans.Improved documentation
#10558: Fix ambiguous docstring of
pytest.Config.getoption
{.interpreted-text role="func"}.#10829: Improve documentation on the current handling of the
--basetemp
option and its lack of retention functionality (temporary directory location and retention
{.interpreted-text role="ref"}).#12866: Improved cross-references concerning the
recwarn
{.interpreted-text role="fixture"} fixture.#12966: Clarify
filterwarnings
{.interpreted-text role="ref"} docs on filter precedence/order when using multiple@pytest.mark.filterwarnings <pytest.mark.filterwarnings ref>
{.interpreted-text role="ref"} marks.Contributor-facing changes
- #12497: Fixed two failing pdb-related tests on Python 3.13.
53f8b4e
Update pypa/gh-action-pypi-publish to v1.12.298dff36
Prepare release version 8.3.41b474e2
approx: use exact comparison for bool (#13013)b541721
docs: Fix wrong statement about sys.modules with importlib import mode
(#1298...16cb87b
pytest.fail: fix ANSI escape codes for colored output (#12959)
(#12990)be6bc81
Issue #12966
Clarify filterwarnings docs on precedence when using multiple ma...7aeb72b
Improve docs on basetemp and retention (#12912)
(#12928)c875841
Merge pull request #12917
from pytest-dev/patchback/backports/8.3.x/ded1f44e5...6502816
Merge pull request #12913
from jakkdl/dontfailonbadpath52135b0
Merge pull request #12885
from The-Compiler/pdb-py311 (#12887)Sourced from ruff's releases.
0.8.2
Release Notes
Preview features
- [
airflow
] Avoid deprecated values (AIR302
) (#14582)- [
airflow
] Extend removed names forAIR302
(#14734)- [
ruff
] Extendunnecessary-regular-expression
to non-literal strings (RUF055
) (#14679)- [
ruff
] Implementused-dummy-variable
(RUF052
) (#14611)- [
ruff
] Implementunnecessary-cast-to-int
(RUF046
) (#14697)Rule changes
- [
airflow
] CheckAIR001
from builtin or providersoperators
module (#14631)- [
flake8-pytest-style
] Remove@
inpytest.mark.parametrize
rule messages (#14770)- [
pandas-vet
] Skip rules if thepanda
module hasn't been seen (#14671)- [
pylint
] Fix false negatives forascii
andsorted
inlen-as-condition
(PLC1802
) (#14692)- [
refurb
] Guardhashlib
imports and markhashlib-digest-hex
fix as safe (FURB181
) (#14694)Configuration
- [
flake8-import-conventions
] Improve syntax check for aliases supplied in configuration forunconventional-import-alias
(ICN001
) (#14745)Bug fixes
- Revert: [pyflakes] Avoid false positives in
@no_type_check
contexts (F821
,F722
) (#14615) (#14726)- [
pep8-naming
] Avoid false positive forclass Bar(type(foo))
(N804
) (#14683)- [
pycodestyle
] Handle f-strings properly forinvalid-escape-sequence
(W605
) (#14748)- [
pylint
] Ignore@overload
inPLR0904
(#14730)- [
refurb
] Handle non-finite decimals inverbose-decimal-constructor
(FURB157
) (#14596)- [
ruff
] Avoid emittingassignment-in-assert
when all references to the assigned variable are themselves insideassert
s (RUF018
) (#14661)Documentation
- Improve docs for
flake8-use-pathlib
rules (#14741)- Improve error messages and docs for
flake8-comprehensions
rules (#14729)- [
flake8-type-checking
] ExpandsTC006
docs to better explain itself (#14749)Contributors
... (truncated)
Sourced from ruff's changelog.
0.8.2
Preview features
- [
airflow
] Avoid deprecated values (AIR302
) (#14582)- [
airflow
] Extend removed names forAIR302
(#14734)- [
ruff
] Extendunnecessary-regular-expression
to non-literal strings (RUF055
) (#14679)- [
ruff
] Implementused-dummy-variable
(RUF052
) (#14611)- [
ruff
] Implementunnecessary-cast-to-int
(RUF046
) (#14697)Rule changes
- [
airflow
] CheckAIR001
from builtin or providersoperators
module (#14631)- [
flake8-pytest-style
] Remove@
inpytest.mark.parametrize
rule messages (#14770)- [
pandas-vet
] Skip rules if thepanda
module hasn't been seen (#14671)- [
pylint
] Fix false negatives forascii
andsorted
inlen-as-condition
(PLC1802
) (#14692)- [
refurb
] Guardhashlib
imports and markhashlib-digest-hex
fix as safe (FURB181
) (#14694)Configuration
- [
flake8-import-conventions
] Improve syntax check for aliases supplied in configuration forunconventional-import-alias
(ICN001
) (#14745)Bug fixes
- Revert: [pyflakes] Avoid false positives in
@no_type_check
contexts (F821
,F722
) (#14615) (#14726)- [
pep8-naming
] Avoid false positive forclass Bar(type(foo))
(N804
) (#14683)- [
pycodestyle
] Handle f-strings properly forinvalid-escape-sequence
(W605
) (#14748)- [
pylint
] Ignore@overload
inPLR0904
(#14730)- [
refurb
] Handle non-finite decimals inverbose-decimal-constructor
(FURB157
) (#14596)- [
ruff
] Avoid emittingassignment-in-assert
when all references to the assigned variable are themselves insideassert
s (RUF018
) (#14661)Documentation
- Improve docs for
flake8-use-pathlib
rules (#14741)- Improve error messages and docs for
flake8-comprehensions
rules (#14729)- [
flake8-type-checking
] ExpandsTC006
docs to better explain itself (#14749)0.8.1
Preview features
- Formatter: Avoid invalid syntax for format-spec with quotes for all Python versions (#14625)
- Formatter: Consider quotes inside format-specs when choosing the quotes for an f-string (#14493)
- Formatter: Do not consider f-strings with escaped newlines as multiline (#14624)
- Formatter: Fix f-string formatting in assignment statement (#14454)
- Formatter: Fix unnecessary space around power operator (
**
) in overlong f-string expressions (#14489)- [
airflow
] Avoid implicitschedule
argument toDAG
and@dag
(AIR301
) (#14581)- [
flake8-builtins
] Exempt private built-in modules (A005
) (#14505)- [
flake8-pytest-style
] Fixpytest.mark.parametrize
rules to check calls instead of decorators (#14515)- [
flake8-type-checking
] Implementruntime-cast-value
(TC006
) (#14511)
... (truncated)
b0e26e6
Bump version to 0.8.2 (#14789)e9941cd
[red-knot] Move standalone expr inference to for
non-name
target (#14788)43bf1a8
Add tests for "keyword as identifier" syntax errors (#14754)fda8b1f
[ruff
] Unnecessary cast to int
(RUF046
) (#14697)2d3f557
[red-knot] Fallback for typing._NoDefaultType
(#14783)bd27bfa
[red-knot] Unify setup_db()
functions, add
TestDb
builder (#14777)155d34b
[red-knot] Infer precise types for len()
calls (#14599)04c887c
Fix references for async-busy-wait
(#14775)af43bd4
[red-knot] Gradual forms do not participate in equivalence/subtyping (#14758)6149177
Remove @
in pytest.mark.parametrize
rule
messages (#14770)