Skip to content

Commit

Permalink
Ignore typing of the _versions.py module.
Browse files Browse the repository at this point in the history
This module is auto-generated without type hints, and would be difficult
to annotate.
  • Loading branch information
HexDecimal committed Feb 25, 2021
1 parent 93c9e6f commit d05942e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ ignore_missing_imports = True
[mypy-pytest]
# Skip incompatible sub-modules.
follow_imports = skip

[mypy-delocate._version]
# Ignore delocate._version module.
ignore_errors = True
2 changes: 1 addition & 1 deletion delocate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .libsana import tree_libs, wheel_libs

from ._version import get_versions
__version__ = get_versions()['version']
__version__ = get_versions()['version'] # type: ignore
del get_versions

__all__ = ("delocate_path", "delocate_wheel", "patch_wheel", "tree_libs",
Expand Down

0 comments on commit d05942e

Please sign in to comment.