Skip to content

Commit

Permalink
Merge pull request #582 from asottile/path_mypy_fix
Browse files Browse the repository at this point in the history
fix __path__ type annotation
  • Loading branch information
asottile committed Dec 28, 2021
2 parents 1c1fc15 + a9485aa commit 7f31a6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyupgrade/_data.py
Expand Up @@ -116,8 +116,7 @@ def visit(


def _import_plugins() -> None:
# https://github.com/python/mypy/issues/1422
plugins_path: str = _plugins.__path__ # type: ignore
plugins_path = _plugins.__path__
mod_infos = pkgutil.walk_packages(plugins_path, f'{_plugins.__name__}.')
for _, name, _ in mod_infos:
__import__(name, fromlist=['_trash'])
Expand Down

0 comments on commit 7f31a6d

Please sign in to comment.