From 6acc75bb7636786f14f70967e44aaa3c4095b7f5 Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Wed, 27 Sep 2023 11:20:23 -0300 Subject: [PATCH] fix typing to fix pre-commit --- src/codemodder/registry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/codemodder/registry.py b/src/codemodder/registry.py index 4505e4c6..1689e73e 100644 --- a/src/codemodder/registry.py +++ b/src/codemodder/registry.py @@ -1,8 +1,8 @@ from dataclasses import dataclass, asdict +from importlib.abc import Traversable from importlib.resources import files from importlib.metadata import entry_points from typing import Optional -from types import ModuleType from codemodder.logging import logger @@ -23,8 +23,8 @@ class _CodemodWrapper: origin: str codemod: type - docs_module: ModuleType - semgrep_config_module: ModuleType + docs_module: Traversable + semgrep_config_module: Traversable def __call__(self, *args, **kwargs): return self.codemod(*args, **kwargs)