Skip to content

Commit e793f09

Browse files
committed
disable mypy for pkg_resources
1 parent 69fe167 commit e793f09

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

argcomplete/scripts/python_argcomplete_check_easy_install_script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main():
3333
lines = head.split("\n", 12)
3434
for line in lines:
3535
if line.startswith("# EASY-INSTALL-SCRIPT"):
36-
import pkg_resources
36+
import pkg_resources # type: ignore
3737

3838
re_match = re.match("# EASY-INSTALL-SCRIPT: '(.+)','(.+)'", line)
3939
assert re_match is not None
@@ -48,7 +48,7 @@ def main():
4848
dist, group, name = re_match.groups()
4949
import pkgutil
5050

51-
import pkg_resources
51+
import pkg_resources # type: ignore
5252

5353
entry_point_info = pkg_resources.get_distribution(dist).get_entry_info(group, name)
5454
assert entry_point_info is not None
@@ -71,7 +71,7 @@ def main():
7171
module = re_match.groups()[0]
7272
import pkgutil
7373

74-
import pkg_resources
74+
import pkg_resources # type: ignore
7575

7676
with open(pkgutil.get_loader(module).get_filename()) as mod_fh: # type: ignore
7777
if "PYTHON_ARGCOMPLETE_OK" in mod_fh.read(1024):

0 commit comments

Comments
 (0)