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
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)
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).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the python-packages group with 12 updates:
3.0.1
3.0.2
0.3.7
0.3.8
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
4.9.4
1.7.1
1.8.0
3.0.2
3.0.3
4.8.0
4.9.0
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-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 4.9.4Changelog
Sourced from lxml's changelog.
Commits
d7f33d6
Prepare release of 4.9.4.e6fa03e
Update changelog.64b1c37
Use latest Cython release for wheels (0.29.36 crashes at shutdown).64a39c4
Use latest libxslt 1.1.39 in wheels.33c9c0e
CI: Make sure we find Py2.7 on macOS.5585faf
CI: Disable Py3.6 with system libraries since we cannot install a matching ve...187e81b
CI: Install system libraries only if STATIC_DEPS=false.9c59c7d
CI: Fix "pip" usage in Py2.7.6cb3381
CI: Use ubuntu-22.04 in the lxml-4.9 branch due to the library dependencies.02e7a31
CI: Explicitly call "python2" instead of "python" in macOS-Py2 job.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
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)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show