Skip to content

Commit

Permalink
Add new standard modules for Python 3.9
Browse files Browse the repository at this point in the history
Fixes arkq#46
  • Loading branch information
arkq committed Jan 23, 2022
1 parent 83d9b79 commit 084927b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/flake8_requirements/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
16 changes: 11 additions & 5 deletions src/flake8_requirements/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,12 @@
"concurrent",
"configparser",
"contextlib",
"contextvars",
"copy",
"copyreg",
"crypt",
"csv",
"ctypes",
"curses",
"dataclasses",
"datetime",
"dbm",
"decimal",
Expand Down Expand Up @@ -427,7 +425,6 @@
"rlcompleter",
"runpy",
"sched",
"secrets",
"select",
"selectors",
"shelve",
Expand Down Expand Up @@ -475,7 +472,6 @@
"turtle",
"turtledemo",
"types",
"typing",
"unicodedata",
"unittest",
"urllib",
Expand All @@ -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
Expand Down

0 comments on commit 084927b

Please sign in to comment.