Skip to content

Instantly share code, notes, and snippets.

from __future__ import annotations
from mypy.plugin import Plugin, ClassDefContext
class MyPlugin(Plugin):
def get_base_class_hook(self, fullname: str) -> None:
if fullname == "..." or "..." in fullname:
# debug print:
print( "hook added" )