Avoid duplicate inference results for some uses of typing.X constructs like
Tuple[Optional[int], ...]. This was causing pylint to occasionally omit
messages like deprecated-typing-alias.
Started running the tests periodically to detect breakages early.
Added Django 5.0, Python 3.12.
Fixed building with hatchling 1.19. Thanks Michał Górny!
2.1 (2023-06-28)
- Added Django 4.1, 4.2 and Python 3.11 to the CI.
- Removed the pytz dependency from the tests.
- Dropped Python < 3.8, Django < 3.2 from the CI.
- Switched to hatchling and ruff.
Raised the minimum supported versions of Python to 3.6, Django to 2.2.
Added pre-commit.
Replaced the explicit configuration of whether static() should be used or
not with automatic configuration. The static argument is still accepted
but ignored and will be removed at a later time.
Added support for boolean attributes when using Django 4.1 or better.
Released as 1.2.1 and 1.2.2:
Made JS() objects hashable so that they can be put into sets in
preparation for a possible fix for media ordering in Django #30179.
Confirmed support for Django 3.0 and 3.1a1.
Django dropped type="text/javascript" in 3.1, changed our tests to
pass again.
Switched from Travis CI to GitHub actions.
Dropped Django 1.7 from the CI jobs list because it somehow didn't
Character escaping in C14N2 serialisation now uses a single pass over the text
instead of searching for each unescaped character separately.
Early support for Python 3.13a2 was added.
Bugs fixed
LP#1976304: The Element.addnext() method previously inserted the new element
before existing tail text. The tail text of both sibling elements now stays on
the respective elements.
LP#1980767, GH#379: TreeBuilder.close() could fail with a TypeError after
parsing incorrect input. Original patch by Enrico Minack.
Element.itertext(with_tail=False) returned the tail text of comments and
processing instructions, despite the explicit option.
GH#370: A crash with recent libxml2 2.11.x versions was resolved.
Patch by Michael Schlenker.
A compile problem with recent libxml2 2.12.x versions was resolved.
The internal exception handling in C callbacks was improved for Cython 3.0.
The exception declarations of xmlInputReadCallback, xmlInputCloseCallback,
xmlOutputWriteCallback and xmlOutputCloseCallback in tree.pxd were
corrected to prevent running Python code or calling into the C-API with a live
exception set.
GH#385: The long deprecated unittest.m̀akeSuite() function is no longer used.
Patch by Miro Hrončok.
LP#1522052: A file-system specific test is now optional and should no longer fail
on systems that don't support it.
GH#392: Some tests were adapted for libxml2 2.13.
Patch by Nick Wellnhofer.
We’ve just uploaded mypy 1.8 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Type-checking Improvements
Do not intersect types in isinstance checks if at least one is final (Christoph Tyralla, PR 16330)
Detect that @final class without __bool__ cannot have falsey instances (Ilya Priven, PR 16566)
Do not allow TypedDict classes with extra keywords (Nikita Sobolev, PR 16438)
Do not allow class-level keywords for NamedTuple (Nikita Sobolev, PR 16526)
Make imprecise constraints handling more robust (Ivan Levkivskyi, PR 16502)
Fix strict-optional in extending generic TypedDict (Ivan Levkivskyi, PR 16398)
Allow type ignores of PEP 695 constructs (Shantanu, PR 16608)
Enable type_check_only support for TypedDict and NamedTuple (Nikita Sobolev, PR 16469)
Performance Improvements
Add fast path to analyzing special form assignments (Jukka Lehtosalo, PR 16561)
Improvements to Error Reporting
Don't show documentation links for plugin error codes (Ivan Levkivskyi, PR 16383)
Improve error messages for super checks and add more tests (Nikita Sobolev, PR 16393)
#11140: Fix non-string constants at the top of file being detected as docstrings on Python>=3.8.
#11572: Handle an edge case where sys.stderr{.interpreted-text role="data"} and sys.__stderr__{.interpreted-text role="data"} might already be closed when faulthandler{.interpreted-text role="ref"} is tearing down.
#11710: Fixed tracebacks from collection errors not getting pruned.
#7966: Removed unhelpful error message from assertion rewrite mechanism when exceptions are raised in __iter__ methods. Now they are treated un-iterable instead.
Improved Documentation
#11091: Updated documentation to refer to hyphenated options: replaced --junitxml with --junit-xml and --collectonly with --collect-only.
This feature release adds typing_extensions.ReadOnly, as specified
by PEP 705, and makes various other improvements, especially to
@typing_extensions.deprecated().
There are no changes since 4.9.0rc1.
4.9.0rc1
Add support for PEP 705, adding typing_extensions.ReadOnly. Patch
by Jelle Zijlstra.
All parameters on NewType.__call__ are now positional-only. This means that
the signature of typing_extensions.NewType.__call__ now exactly matches the
signature of typing.NewType.__call__. Patch by Alex Waygood.
Fix bug with using @deprecated on a mixin class. Inheriting from a
deprecated class now raises a DeprecationWarning. Patch by Jelle Zijlstra.
@deprecated now gives a better error message if you pass a non-str
argument to the msg parameter. Patch by Alex Waygood.
@deprecated is now implemented as a class for better introspectability.
Patch by Jelle Zijlstra.
Exclude __match_args__ from Protocol members.
Backport of python/cpython#110683 by Nikita Sobolev.
When creating a typing_extensions.NamedTuple class, ensure __set_name__
is called on all objects that define __set_name__ and exist in the values
of the NamedTuple class's class dictionary. Patch by Alex Waygood,
backporting python/cpython#111876.
Improve the error message when trying to call issubclass() against a
Protocol that has non-method members. Patch by Alex Waygood (backporting
python/cpython#112344, by Randolph Scholz).
This feature release adds typing_extensions.ReadOnly, as specified
by PEP 705, and makes various other improvements, especially to
@typing_extensions.deprecated().
There are no changes since 4.9.0rc1.
Release 4.9.0rc1 (November 29, 2023)
Add support for PEP 705, adding typing_extensions.ReadOnly. Patch
by Jelle Zijlstra.
All parameters on NewType.__call__ are now positional-only. This means that
the signature of typing_extensions.NewType.__call__ now exactly matches the
signature of typing.NewType.__call__. Patch by Alex Waygood.
Fix bug with using @deprecated on a mixin class. Inheriting from a
deprecated class now raises a DeprecationWarning. Patch by Jelle Zijlstra.
@deprecated now gives a better error message if you pass a non-str
argument to the msg parameter. Patch by Alex Waygood.
@deprecated is now implemented as a class for better introspectability.
Patch by Jelle Zijlstra.
Exclude __match_args__ from Protocol members.
Backport of python/cpython#110683 by Nikita Sobolev.
When creating a typing_extensions.NamedTuple class, ensure __set_name__
is called on all objects that define __set_name__ and exist in the values
of the NamedTuple class's class dictionary. Patch by Alex Waygood,
backporting python/cpython#111876.
Improve the error message when trying to call issubclass() against a
Protocol that has non-method members. Patch by Alex Waygood (backporting
python/cpython#112344, by Randolph Scholz).
Upstream version 2023d released 2023-12-22T04:02:24+00:00
Briefly:
Ittoqqortoormiit, Greenland changes time zones on 2024-03-31. Vostok, Antarctica
changed time zones on 2023-12-18. Casey, Antarctica changed time zones five
times since 2020. Code and data fixes for Palestine timestamps starting in 2072.
A new data file zonenow.tab for timestamps starting now.
Changes to future timestamps
Ittoqqortoormiit, Greenland (America/Scoresbysund) joins most of the rest of
Greenland's timekeeping practice on 2024-03-31, by changing its time zone from
-01/+00 to -02/-01 at the same moment as the spring-forward transition. Its
clocks will therefore not spring forward as previously scheduled. The time zone
change reverts to its common practice before 1981.
Fix predictions for DST transitions in Palestine in 2072-2075, correcting a typo
introduced in 2023a.
Changes to past and future timestamps
Vostok, Antarctica changed to +05 on 2023-12-18. It had been at +07 (not +06)
for years. (Thanks to Zakhary V. Akulov.)
Change data for Casey, Antarctica to agree with timeanddate.com, by adding five
time zone changes since 2020. Casey is now at +08 instead of +11.
Changes to past tm_isdst flags
Much of Greenland, represented by America/Nuuk, changed its standard time from
-03 to -02 on 2023-03-25, not on 2023-10-28. This does not affect UTC offsets,
only the tm_isdst flag. (Thanks to Thomas M. Steenholdt.)
New data file
A new data file zonenow.tab helps configure applications that use timestamps
dated from now on. This simplifies configuration, since users choose from a
smaller Zone set. The file's format is experimental and subject to change.
Changes to commentary
Limitations and hazards of the optional support for obsolescent C89 platforms
are documented better, along with a tentative schedule for removing this
support.
Upstream version 2023d released 2023-12-22T04:02:24+00:00
Briefly:
Ittoqqortoormiit, Greenland changes time zones on 2024-03-31. Vostok, Antarctica
changed time zones on 2023-12-18. Casey, Antarctica changed time zones five
times since 2020. Code and data fixes for Palestine timestamps starting in 2072.
A new data file zonenow.tab for timestamps starting now.
Changes to future timestamps
Ittoqqortoormiit, Greenland (America/Scoresbysund) joins most of the rest of
Greenland's timekeeping practice on 2024-03-31, by changing its time zone from
-01/+00 to -02/-01 at the same moment as the spring-forward transition. Its
clocks will therefore not spring forward as previously scheduled. The time zone
change reverts to its common practice before 1981.
Fix predictions for DST transitions in Palestine in 2072-2075, correcting a typo
introduced in 2023a.
Changes to past and future timestamps
Vostok, Antarctica changed to +05 on 2023-12-18. It had been at +07 (not +06)
for years. (Thanks to Zakhary V. Akulov.)
Change data for Casey, Antarctica to agree with timeanddate.com, by adding five
time zone changes since 2020. Casey is now at +08 instead of +11.
Changes to past tm_isdst flags
Much of Greenland, represented by America/Nuuk, changed its standard time from
-03 to -02 on 2023-03-25, not on 2023-10-28. This does not affect UTC offsets,
only the tm_isdst flag. (Thanks to Thomas M. Steenholdt.)
New data file
A new data file zonenow.tab helps configure applications that use timestamps
dated from now on. This simplifies configuration, since users choose from a
smaller Zone set. The file's format is experimental and subject to change.
Changes to commentary
Limitations and hazards of the optional support for obsolescent C89 platforms
are documented better, along with a tentative schedule for removing this
support.
Bumps the python-packages group with 15 updates:
3.0.1
3.0.2
0.3.7
0.3.8
4.2.8
4.2.9
2.1.0
2.2.0
1.3
1.4
4.2.6
4.2.7
4.2.5
4.2.7
5.12.0
5.13.2
1.9.0
1.10.0
4.9.3
5.0.0
1.7.1
1.8.0
3.0.2
3.0.3
7.4.3
7.4.4
4.8.0
4.9.0
2023.3
2023.4
Updates
astroid
from 3.0.1 to 3.0.2Changelog
Sourced from astroid's changelog.
Commits
e6dea9c
Bump astroid to 3.0.2, update changelog (#2343)7cad63a
Avoid duplicate inference results forTuple[Optional[int], ...]
(#2340) (#2...d57c912
Disable test_crypt_brain on Python >= 3.13 (#2328) (#2329)d511533
Avoid changing release numberUpdates
distlib
from 0.3.7 to 0.3.8Changelog
Sourced from distlib's changelog.
Commits
ab5f8e7
Changes for 0.3.8.86bb212
Update change log.488599f
Updates based on flake8 checks.0e261af
Use legacy version implementation for Python itself.8242f39
Update copyright years.e27569b
Fix #208: Handle deprecation removals in Python 3.13.65a014b
Update requirements and CI matrix.124108a
Skip test for non-final Python versions.ff48e09
Fix #206: include tox.ini in sdist.eeaa18d
Fix #204: Use symlinks in venv creation during test.Updates
django
from 4.2.8 to 4.2.9Commits
f339c4c
[4.2.x] Bumped version for 4.2.9 release.0a4c5e5
[4.2.x] Added release date for 4.2.9.ca43990
[4.2.x] Fixed #35012 -- Restored wrapping admin fieldsets with multiple field...d9ba0ea
[4.2.x] Added stub release notes for 4.2.9.a315e82
[4.2.x] Post-release version bump.Updates
django-js-asset
from 2.1.0 to 2.2.0Changelog
Sourced from django-js-asset's changelog.
... (truncated)
Commits
18496be
django-js-asset 2.200c30ce
Add Django 5.0, Python 3.12, update pre-commit hooks4862bea
Merge pull request #12 from mgorny/hatchling440ad30
Fix building with hatchling-1.1958e313f
Hooks36762c1
Add Django 5.0a1 to the CIbce32f1
Run tests periodicallyUpdates
django-sass-processor
from 1.3 to 1.4Changelog
Sourced from django-sass-processor's changelog.
Commits
39a479e
Release 1.4 (#177)cc79308
Merge pull request #176 from washeck/test-matrixb059371
Update compatibility claims and testing matrixUpdates
django-stubs
from 4.2.6 to 4.2.7Commits
e1184c7
Version 4.2.7 release (django-stubs, django-stubs-ext) (#1856)fb0908a
AddedModel._do_update()
method signature (#1854)9720b27
FixedTemplateResponse.cookies
attribute andSimpleCookie
type (#1702)197f0e3
Fix Self typed custom queryset methods incompatible with base queryset type (...bfa4590
Unify plugin check for model type info (#1853)5d54ac4
Updatedjango.core.management.commands.*
(#1829)53cdbe4
ImproveManyToManyDescriptor
and fixModel.\<manytomany>.through
typing (#...0a61d81
Bump mypy from 1.7.0 to 1.7.1 (#1850)82c394f
[pre-commit.ci] pre-commit autoupdate (#1848)e37cef0
MakeRelatedManager
,ManyRelatedManager
to inherit fromManager
not `Ba...Updates
django-stubs-ext
from 4.2.5 to 4.2.7Commits
e1184c7
Version 4.2.7 release (django-stubs, django-stubs-ext) (#1856)fb0908a
AddedModel._do_update()
method signature (#1854)9720b27
FixedTemplateResponse.cookies
attribute andSimpleCookie
type (#1702)197f0e3
Fix Self typed custom queryset methods incompatible with base queryset type (...bfa4590
Unify plugin check for model type info (#1853)5d54ac4
Updatedjango.core.management.commands.*
(#1829)53cdbe4
ImproveManyToManyDescriptor
and fixModel.\<manytomany>.through
typing (#...0a61d81
Bump mypy from 1.7.0 to 1.7.1 (#1850)82c394f
[pre-commit.ci] pre-commit autoupdate (#1848)e37cef0
MakeRelatedManager
,ManyRelatedManager
to inherit fromManager
not `Ba...Updates
isort
from 5.12.0 to 5.13.2Release notes
Sourced from isort's releases.
... (truncated)
Changelog
Sourced from isort's changelog.
Commits
c655831
Merge pull request #2214 from PyCQA/version/5.13.2b4335b4
Prepare version 5.13.2c36e43c
Merge pull request #2184 from bp72/issue/2154e38702f
Merge pull request #2213 from davidculley/confine-precommit-to-stagesee8d87f
Add fix for the error found by hypothesis5849ec2
Apply the bracket fix from issue 471 only for use_parentheses=Truedf0e119
confine pre-commit to stages9255bca
Merge pull request #2212 from PyCQA/bugfix/#2211-colors-extra5336d7d
Fix colors extras643d9c4
Merge pull request #2210 from PyCQA/version/5.13.1Updates
lazy-object-proxy
from 1.9.0 to 1.10.0Changelog
Sourced from lazy-object-proxy's changelog.
Commits
aa46e84
Bump version: 1.9.0 → 1.10.07b32ae5
Update changelog.940c8c6
Bail out early if extensions would be disabled.dab21f7
Fix broken link.2ca62af
Xfail these till I can figure it out.4aab407
Manually spec setuptools for that inplace building.2f8bed2
Make sure the C ext is not build on PyPy (if it builds it would segfault and ...f633fd3
Spelling.b8e223a
Fix a bunch of lint issues.ff7459e
First batch of ruff/black autorefactors/format.Updates
lxml
from 4.9.3 to 5.0.0Changelog
Sourced from lxml's changelog.
... (truncated)
Commits
73fa115
Prepare release of lxml 5.0.0.6256584
Update changelog.b38cebf
Disable external entity resolution (XXE) by default (GH-391)2de6ecf
tests: Set no_network=False in HTTP tests (GH-392)5024820
Minor code cleanup.9f58aa7
Do not let "Element.itertext()"" return tail text of PIs and comments if the ...badcb49
Update changelog.e82b1f5
CI: Build the coverage job with STATIC_DEPS=true to make it independent of th...8324137
Fix test in Py2.7.ac82838
Fix the work around for a test failure in Python 3.11.Updates
mypy
from 1.7.1 to 1.8.0Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
3b46750
remove +dev suffix from versionc9bc833
Fix tests broken by hatchling (#16655)60d30e3
Fix crash with type alias toCallable[[Unpack[Tuple[Any, ...]]], Any]
(#16541)f53f422
Allow type ignores of PEP 695 constructs (#16608)7c33e7c
@final
class without bool cannot have falsey instances (#16566)c224da5
Do not intersect types in isinstance checks if at least one is final (#16330)d54cc35
Change example in test cases with no stubs available (#16513)eb1ee97
Update hashes insync-typeshed.py
following recent typeshed sync (#16600)344298e
Revert use ofParamSpec
forfunctools.wraps
3e5d813
Revert typeshed ctypes changeUpdates
pylint
from 3.0.2 to 3.0.3Commits
1a5ffc1
Bump pylint to 3.0.3, update changelog54687e7
Disallow isort 5.13.0 (#9290) (#9292)fea5483
[wrong-exception-operation] Fix FP for tuple concatenation of exception types...d0d5c91
[pointless-string-statement] Ignore docstrings on py3.12 type aliases (#9269)...81f0f2e
[Backport maintenance/3.0.x] [bugfix] Find files with ./ as input with a __in...7f01d83
Fix doc generation in implicit-str-concata60ddd1
Fix incorrect suggestion for unnecessary-comprehension (#9172) (#9242)dc11223
[todos] Fix the todos version and the warnings' text (#9202) (#9204)0273db7
Fix false positive forunnecessary-lambda
. (#9149) (#9200)53d4541
Fixundefined-variable
etc for Python 3.12 generic type syntax (#9195) (#9199)Updates
pytest
from 7.4.3 to 7.4.4Release notes
Sourced from pytest's releases.
Commits
33f694f
Prepare release version 7.4.476c107c
Merge pull request #11751 from bluetech/backport-11143-to-7.4.x531d76d
[7.4.x] Improve reporting from iter exceptions (#11749)a0f58fa
Merge pull request #11143 from tushar-deepsource/patch-1b1f3387
[7.4.x] #11091: documentation should use hypthonated properties (#11750)2cdd619
Merge pull request #11747 from pytest-dev/backport-11711-to-7.4.xd06c05b
[7.4.x] nodes: fix tracebacks from collection errors are not getting pruned5582bfc
[7.4.x] Improves clarity in Sphinx documentation for function signature. (#11...13024ef
[7.4.x] Fix for operation on closed file in faulthandler teardown (#11631)a40dacf
[7.4.x] XFAIL TestLocalPath.test_make_numbered_dir_multiprocess_safe (#11616)Updates
typing-extensions
from 4.8.0 to 4.9.0Release notes
Sourced from typing-extensions's releases.
Changelog
Sourced from typing-extensions's changelog.
Commits
fc461d6
Release 4.9.0 (#313)f82d636
Prepare release 4.9.0rc1 (#306)daa7931
Run typed-argument-parser tests on 3.12 in the daily workflow (#307)0b0166d
Add support for PEP 705 (#284)db6f9b4
Update@deprecated
implementation (#302)18ae2b3
Backport recent improvements to the error message when trying to call `issubc...e4d9d8b
fix typo inoverride()
docstring (#305)4f91502
Backport recent change toNamedTuple
classes regarding__set_name__
(#303)7af82f9
@deprecated
: will be in warnings, not typing (#298)f9f257c
Fix deprecating a mixin; warn when inheriting from a deprecated class (#294)Updates
tzdata
from 2023.3 to 2023.4Release notes
Sourced from tzdata's releases.
Changelog
Sourced from tzdata's changelog.
Commits
c7bf688
Bump version to 2023.4Looks like these dependencies are updatable in another way, so this is no longer needed.