Skip to content

Commit 012a687

Browse files
committed
refactor: no longer need a strange typing import
1 parent 212f652 commit 012a687

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

coverage/tomlconfig.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
import tomllib # pylint: disable=import-error
1616
else:
1717
# TOML support on Python 3.10 and below is an install-time extra option.
18-
# (Import typing is here because import_third_party will unload any module
19-
# that wasn't already imported. tomli imports typing, and if we unload it,
20-
# later it's imported again, and on Python 3.6, this causes infinite
21-
# recursion.)
22-
import typing # pylint: disable=unused-import
2318
tomllib = import_third_party("tomli")
2419

2520

0 commit comments

Comments
 (0)