Skip to content

Commit

Permalink
refactor: no longer need a strange typing import
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 27, 2022
1 parent 212f652 commit 012a687
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions coverage/tomlconfig.py
Expand Up @@ -15,11 +15,6 @@
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")


Expand Down

0 comments on commit 012a687

Please sign in to comment.