We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594c550 commit 68f1df5Copy full SHA for 68f1df5
pytorch_lightning/utilities/registry.py
@@ -12,10 +12,10 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
import inspect
15
-from typing import Callable
+from typing import Any
16
17
18
-def _is_register_method_overridden(mod: type, base_cls: Callable, method: str) -> bool:
+def _is_register_method_overridden(mod: type, base_cls: Any, method: str) -> bool:
19
mod_attr = getattr(mod, method)
20
previous_super_cls = inspect.getmro(mod)[1]
21
0 commit comments