diff --git a/src/flake8_requirements/checker.py b/src/flake8_requirements/checker.py index 7aed7a5..881e4c4 100644 --- a/src/flake8_requirements/checker.py +++ b/src/flake8_requirements/checker.py @@ -18,7 +18,7 @@ from .modules import STDLIB_PY3 # NOTE: Changing this number will alter package version as well. -__version__ = "1.5.1" +__version__ = "1.5.2" __license__ = "MIT" LOG = getLogger('flake8.plugin.requirements') diff --git a/src/flake8_requirements/modules.py b/src/flake8_requirements/modules.py index 57df0cd..182b7a4 100644 --- a/src/flake8_requirements/modules.py +++ b/src/flake8_requirements/modules.py @@ -320,14 +320,12 @@ "concurrent", "configparser", "contextlib", - "contextvars", "copy", "copyreg", "crypt", "csv", "ctypes", "curses", - "dataclasses", "datetime", "dbm", "decimal", @@ -427,7 +425,6 @@ "rlcompleter", "runpy", "sched", - "secrets", "select", "selectors", "shelve", @@ -475,7 +472,6 @@ "turtle", "turtledemo", "types", - "typing", "unicodedata", "unittest", "urllib", @@ -492,10 +488,20 @@ "xdrlib", "xml", "xmlrpc", - "zipapp", "zipfile", "zipimport", "zlib", + # Modules since Python 3.5 + "typing", + "zipapp", + # Modules since Python 3.6 + "secrets", + # Modules since Python 3.7 + "contextvars", + "dataclasses", + # Modules since Python 3.9 + "graphlib", + "zoneinfo", ) # Mapping for known 3rd party projects, which provide more than one module