Skip to content

Commit 0f854d2

Browse files
committed
drgn.helpers.linux: remove unused "# type: ignore"
python/mypy#1422 was fixed awhile ago. Signed-off-by: Omar Sandoval <[email protected]>
1 parent 30c9ad4 commit 0f854d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drgn/helpers/linux/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
from typing import List
3636

3737
__all__: List[str] = []
38-
for _module_info in pkgutil.iter_modules(
39-
__path__, # type: ignore[name-defined] # python/mypy#1422
40-
prefix=__name__ + ".",
41-
):
38+
for _module_info in pkgutil.iter_modules(__path__, prefix=__name__ + "."):
4239
_submodule = importlib.import_module(_module_info.name)
4340
_submodule_all = getattr(_submodule, "__all__", ())
4441
__all__.extend(_submodule_all)

0 commit comments

Comments
 (0)