From 012a687b45fba8f8b3feb5aef9cd2f0c6e860d43 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 27 Dec 2022 17:23:03 -0500 Subject: refactor: no longer need a strange typing import --- coverage/tomlconfig.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'coverage/tomlconfig.py') 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") -- cgit v1.2.1