diff options
author | Peter Kolbus <peter.kolbus@garmin.com> | 2021-05-12 06:40:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 13:40:15 +0200 |
commit | 318f1afa9384742c3dd42daa4deb7d22c0b662e0 (patch) | |
tree | ecd007b43f1b61e813b87c4926dae1382ef4b0b9 /ChangeLog | |
parent | 9b268ecedb1c3dbfd24f5edb0c891266f988b87a (diff) | |
download | pylint-git-318f1afa9384742c3dd42daa4deb7d22c0b662e0.tar.gz |
Fix issues with Python 3.6.0 (#4446)
* tox: Enable testing python 3.6.0
The requirements_test.txt includes black, pre-commit, and pyupgrade
which are not compatible with Python 3.6.0. Add python_full_version
markers so that `tox -e py36` works with 3.6.0.
* Fix typing.Counter import for Python 3.6.0
typing.Counter was added in Python 3.6.1. In the strings checker,
guard the import with TYPE_CHECKING and use a type annotation comment
to fix usage with Python 3.6.0.
* Skip typing.NoReturn tests on Python < 3.6.2
typing.NoReturn was introduced in Python 3.6.2. Move the tests for
issue #4122 to a separate file and skip when Python is too old.
* Update ChangeLog and whatsnew
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -40,6 +40,10 @@ modules are added. * Don't emit ``import-error`` if import guarded behind ``if sys.version_info >= (x, x)`` +* Fix incompatibility with Python 3.6.0 caused by ``typing.Counter`` and ``typing.NoReturn`` usage + + Closes #4412 + What's New in Pylint 2.8.2? =========================== |