improve coverage pragmas with covdefaults 2.1

Committed via https://github.com/asottile/all-repos
This commit is contained in:
Anthony Sottile 2021-11-29 20:45:40 -05:00
parent f6547ac54e
commit 270b539e8f
4 changed files with 7 additions and 7 deletions

View file

@ -21,10 +21,10 @@ import yaml
from pre_commit import parse_shebang
if sys.version_info >= (3, 7): # pragma: no cover (PY37+)
if sys.version_info >= (3, 7): # pragma: >=3.7 cover
from importlib.resources import open_binary
from importlib.resources import read_text
else: # pragma: no cover (<PY37)
else: # pragma: <3.7 cover
from importlib_resources import open_binary
from importlib_resources import read_text