summaryrefslogtreecommitdiff
path: root/coverage/tomlconfig.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-27 17:23:03 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-27 17:23:03 -0500
commit012a687b45fba8f8b3feb5aef9cd2f0c6e860d43 (patch)
treee15976e621836aa8b36a37af12c48d6b257a4848 /coverage/tomlconfig.py
parent212f652076bb5f5c464db49576d927bc30ef0e1e (diff)
downloadpython-coveragepy-git-012a687b45fba8f8b3feb5aef9cd2f0c6e860d43.tar.gz
refactor: no longer need a strange typing import
Diffstat (limited to 'coverage/tomlconfig.py')
-rw-r--r--coverage/tomlconfig.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py
index a2d4c6e8..a7d39042 100644
--- a/coverage/tomlconfig.py
+++ b/coverage/tomlconfig.py
@@ -15,11 +15,6 @@ if env.PYVERSION >= (3, 11, 0, "alpha", 7):
import tomllib # pylint: disable=import-error
else:
# TOML support on Python 3.10 and below is an install-time extra option.
- # (Import typing is here because import_third_party will unload any module
- # that wasn't already imported. tomli imports typing, and if we unload it,
- # later it's imported again, and on Python 3.6, this causes infinite
- # recursion.)
- import typing # pylint: disable=unused-import
tomllib = import_third_party("tomli")