Sourced from pydantic's\r\nreleases.
\r\n\r\n\r\nv2.4.0 2023-09-25
\r\nWhat's Changed
\r\nPackaging
\r\n\r\n
\r\n- Update pydantic-core to 2.10.0 by
\r\n@samuelcolvin
\r\nin #7542New Features
\r\n\r\n
\r\n- Add
\r\nBase64Url
types by@dmontagu
in #7286- Implement optional
\r\nnumber
tostr
coercion\r\nby@lig
in #7508- Allow access to
\r\nfield_name
anddata
in all\r\nvalidators if there is data and a field name by@samuelcolvin
\r\nin #7542- Add
\r\nBaseModel.model_validate_strings
and\r\nTypeAdapter.validate_strings
by@hramezani
in #7552- Add Pydantic
\r\nplugins
experimental implementation by@lig
@samuelcolvin
\r\nand@Kludex
in #6820Changes
\r\n\r\n
\r\n- Do not override
\r\nmodel_post_init
in subclass with\r\nprivate attrs by@Viicos
in #7302- Make fields with defaults not required in the serialization schema\r\nby default by
\r\n@dmontagu
in #7275- Mark
\r\nExtra
as deprecated by@disrupted
in #7299- Make
\r\nEncodedStr
a dataclass by@Kludex
in #7396- Move
\r\nannotated_handlers
to be public by@samuelcolvin
\r\nin #7569Performance
\r\n\r\n
\r\n- Simplify flattening and inlining of
\r\nCoreSchema
by@adriangb
in #7523- Remove unused copies in
\r\nCoreSchema
walking by@adriangb
in #7528- Add caches for collecting definitions and invalid schemas from a\r\nCoreSchema by
\r\n@adriangb
in #7527- Eagerly resolve discriminated unions and cache cases where we can't\r\nby
\r\n@adriangb
in\r\n#7529- Replace
\r\ndict.get
anddict.setdefault
with\r\nmore verbose versions inCoreSchema
building hot paths by\r\n@adriangb
in #7536- Cache invalid
\r\nCoreSchema
discovery by@adriangb
in #7535- Allow disabling
\r\nCoreSchema
validation for faster\r\nstartup times by@adriangb
in #7565Fixes
\r\n\r\n
\r\n\r\n- Fix config detection for
\r\nTypedDict
from grandparent\r\nclasses by@dmontagu
in #7272- Fix hash function generation for frozen models with unusual MRO by\r\n
\r\n@dmontagu
in #7274- Make
\r\nstrict
config overridable in field for Path by@hramezani
in #7281- Use
\r\nser_json_<timedelta|bytes>
on default in\r\nGenerateJsonSchema
by@Kludex
in #7269- Adding a check that alias is validated as an identifier for Python\r\nby
\r\n@andree0
in #7319- Raise an error when computed field overrides field by
\r\n@sydney-runkle
\r\nin #7346- Fix applying
\r\nSkipValidation
to referenced schemas by@adriangb
in #7381- Enforce behavior of private attributes having double leading\r\nunderscore by
\r\n@lig
in\r\n#7265- Standardize
\r\n__get_pydantic_core_schema__
signature by\r\n@hramezani
in\r\n#7415- Fix generic dataclass fields mutation bug (when using\r\n
\r\nTypeAdapter
) by@sydney-runkle
\r\nin #7435- Fix
\r\nTypeError
onmodel_validator
in\r\nwrap
mode by@pmmmwh
in #7496- Improve enum error message by
\r\n@hramezani
in #7506- Make
\r\nrepr
work for instances that failed initialization\r\nwhen handlingValidationError
s by@dmontagu
in #7439- Fixed a regular expression denial of service issue by limiting\r\nwhitespaces by
\r\n@prodigysml
in #7360- Fix handling of
\r\nUUID
values having\r\nUUID.version=None
by@lig
in #7566
... (truncated)
\r\nSourced from pydantic's\r\nchangelog.
\r\n\r\n\r\nv2.4.0 (2023-09-22)
\r\n\r\nWhat's Changed
\r\nPackaging
\r\n\r\n
\r\n- Update pydantic-core to 2.10.0 by
\r\n@samuelcolvin
\r\nin #7542New Features
\r\n\r\n
\r\n- Add
\r\nBase64Url
types by@dmontagu
in #7286- Implement optional
\r\nnumber
tostr
coercion\r\nby@lig
in #7508- Allow access to
\r\nfield_name
anddata
in all\r\nvalidators if there is data and a field name by@samuelcolvin
\r\nin #7542- Add
\r\nBaseModel.model_validate_strings
and\r\nTypeAdapter.validate_strings
by@hramezani
in #7552- Add Pydantic
\r\nplugins
experimental implementation by@lig
@samuelcolvin
\r\nand@Kludex
in #6820Changes
\r\n\r\n
\r\n- Do not override
\r\nmodel_post_init
in subclass with\r\nprivate attrs by@Viicos
in #7302- Make fields with defaults not required in the serialization schema\r\nby default by
\r\n@dmontagu
in #7275- Mark
\r\nExtra
as deprecated by@disrupted
in #7299- Make
\r\nEncodedStr
a dataclass by@Kludex
in #7396- Move
\r\nannotated_handlers
to be public by@samuelcolvin
\r\nin #7569Performance
\r\n\r\n
\r\n- Simplify flattening and inlining of
\r\nCoreSchema
by@adriangb
in #7523- Remove unused copies in
\r\nCoreSchema
walking by@adriangb
in #7528- Add caches for collecting definitions and invalid schemas from a\r\nCoreSchema by
\r\n@adriangb
in #7527- Eagerly resolve discriminated unions and cache cases where we can't\r\nby
\r\n@adriangb
in\r\n#7529- Replace
\r\ndict.get
anddict.setdefault
with\r\nmore verbose versions inCoreSchema
building hot paths by\r\n@adriangb
in #7536- Cache invalid
\r\nCoreSchema
discovery by@adriangb
in #7535- Allow disabling
\r\nCoreSchema
validation for faster\r\nstartup times by@adriangb
in #7565Fixes
\r\n\r\n
\r\n\r\n- Fix config detection for
\r\nTypedDict
from grandparent\r\nclasses by@dmontagu
in #7272- Fix hash function generation for frozen models with unusual MRO by\r\n
\r\n@dmontagu
in #7274- Make
\r\nstrict
config overridable in field for Path by@hramezani
in #7281- Use
\r\nser_json_<timedelta|bytes>
on default in\r\nGenerateJsonSchema
by@Kludex
in #7269- Adding a check that alias is validated as an identifier for Python\r\nby
\r\n@andree0
in #7319- Raise an error when computed field overrides field by
\r\n@sydney-runkle
\r\nin #7346- Fix applying
\r\nSkipValidation
to referenced schemas by@adriangb
in #7381- Enforce behavior of private attributes having double leading\r\nunderscore by
\r\n@lig
in\r\n#7265- Standardize
\r\n__get_pydantic_core_schema__
signature by\r\n@hramezani
in\r\n#7415- Fix generic dataclass fields mutation bug (when using\r\n
\r\nTypeAdapter
) by@sydney-runkle
\r\nin #7435- Fix
\r\nTypeError
onmodel_validator
in\r\nwrap
mode by@pmmmwh
in #7496- Improve enum error message by
\r\n@hramezani
in #7506
... (truncated)
\r\n1f59075
\r\nfix unintentional drop of character in HISTORY (#7600)7183c3e
\r\nadding mkdocs_run_deps
to docs (#7602)cd44ac1
\r\nAdd missing @Kludex
mention to\r\nthe HISTORY.md
(#7603)6136b9a
\r\nPrepare release 2.4.0 (#7568)389c074
\r\nRevert unecessary regex change from e4393ae (#7599)4279fc5
\r\nWIP fixing redirects (#7596)829af25
\r\nImprovements to version info message (#7594)cc4b8c2
\r\nSmall improvements to import performance (#7590)0af0cc3
\r\nrevert plugin performance regression (#7589)0c760c0
\r\nimprove formatting of generated release notes (#7592)Sourced from black's\r\nreleases.
\r\n\r\n\r\n24.3.0
\r\nHighlights
\r\nThis release is a milestone: it fixes Black's first CVE security\r\nvulnerability. If you\r\nrun Black on untrusted input, or if you habitually put thousands of\r\nleading tab\r\ncharacters in your docstrings, you are strongly encouraged to upgrade\r\nimmediately to fix\r\nCVE-2024-21503.
\r\nThis release also fixes a bug in Black's AST safety check that\r\nallowed Black to make\r\nincorrect changes to certain f-strings that are valid in Python 3.12 and\r\nhigher.
\r\nStable style
\r\n\r\n
\r\n- Don't move comments along with delimiters, which could cause crashes\r\n(#4248)
\r\n- Strengthen AST safety check to catch more unsafe changes to strings.\r\nPrevious versions\r\nof Black would incorrectly format the contents of certain unusual\r\nf-strings containing\r\nnested strings with the same quote type. Now, Black will crash on such\r\nstrings until\r\nsupport for the new f-string syntax is implemented. (#4270)
\r\n- Fix a bug where line-ranges exceeding the last code line would not\r\nwork as expected\r\n(#4273)
\r\nPerformance
\r\n\r\n
\r\n- Fix catastrophic performance on docstrings that contain large\r\nnumbers of leading tab\r\ncharacters. This fixes\r\nCVE-2024-21503.\r\n(#4278)
\r\nDocumentation
\r\n\r\n
\r\n- Note what happens when
\r\n--check
is used with\r\n--quiet
(#4236)24.2.0
\r\nStable style
\r\n\r\n
\r\n- Fixed a bug where comments where mistakenly removed along with\r\nredundant parentheses\r\n(#4218)
\r\nPreview style
\r\n\r\n
\r\n- Move the
\r\nhug_parens_with_braces_and_square_brackets
\r\nfeature to the unstable style\r\ndue to an outstanding crash and proposed formatting tweaks (#4198)- Fixed a bug where base expressions caused inconsistent formatting of\r\n** in tenary\r\nexpression (#4154)
\r\n- Checking for newline before adding one on docstring that is almost\r\nat the line limit\r\n(#4185)
\r\n- Remove redundant parentheses in
\r\ncase
statement\r\nif
guards (#4214).Configuration
\r\n\r\n
... (truncated)
\r\nSourced from black's\r\nchangelog.
\r\n\r\n\r\n24.3.0
\r\nHighlights
\r\nThis release is a milestone: it fixes Black's first CVE security\r\nvulnerability. If you\r\nrun Black on untrusted input, or if you habitually put thousands of\r\nleading tab\r\ncharacters in your docstrings, you are strongly encouraged to upgrade\r\nimmediately to fix\r\nCVE-2024-21503.
\r\nThis release also fixes a bug in Black's AST safety check that\r\nallowed Black to make\r\nincorrect changes to certain f-strings that are valid in Python 3.12 and\r\nhigher.
\r\nStable style
\r\n\r\n
\r\n- Don't move comments along with delimiters, which could cause crashes\r\n(#4248)
\r\n- Strengthen AST safety check to catch more unsafe changes to strings.\r\nPrevious versions\r\nof Black would incorrectly format the contents of certain unusual\r\nf-strings containing\r\nnested strings with the same quote type. Now, Black will crash on such\r\nstrings until\r\nsupport for the new f-string syntax is implemented. (#4270)
\r\n- Fix a bug where line-ranges exceeding the last code line would not\r\nwork as expected\r\n(#4273)
\r\nPerformance
\r\n\r\n
\r\n- Fix catastrophic performance on docstrings that contain large\r\nnumbers of leading tab\r\ncharacters. This fixes\r\nCVE-2024-21503.\r\n(#4278)
\r\nDocumentation
\r\n\r\n
\r\n- Note what happens when
\r\n--check
is used with\r\n--quiet
(#4236)24.2.0
\r\nStable style
\r\n\r\n
\r\n- Fixed a bug where comments where mistakenly removed along with\r\nredundant parentheses\r\n(#4218)
\r\nPreview style
\r\n\r\n
\r\n\r\n- Move the
\r\nhug_parens_with_braces_and_square_brackets
\r\nfeature to the unstable style\r\ndue to an outstanding crash and proposed formatting tweaks (#4198)- Fixed a bug where base expressions caused inconsistent formatting of\r\n** in tenary\r\nexpression (#4154)
\r\n- Checking for newline before adding one on docstring that is almost\r\nat the line limit\r\n(#4185)
\r\n- Remove redundant parentheses in
\r\ncase
statement\r\nif
guards (#4214).
... (truncated)
\r\n552baf8
\r\nPrepare release 24.3.0 (#4279)f000936
\r\nFix catastrophic performance in lines_with_leading_tabs_expanded() (#4278)7b5a657
\r\nFix --line-ranges behavior when ranges are at EOF (#4273)1abcffc
\r\nUse regex where we ignore case on windows (#4252)719e674
\r\nFix 4227: Improve documentation for --quiet --check (#4236)e5510af
\r\nupdate plugin url for Thonny (#4259)6af7d11
\r\nFix AST safety check false negative (#4270)f03ee11
\r\nEnsure blib2to3.pygram
is initialized before use (#4224)e4bfedb
\r\nfix: Don't move comments while splitting delimiters (#4248)d0287e1
\r\nMake trailing comma logic more concise (#4202)