diff --git a/midas/checker/types.py b/midas/checker/types.py index 2becf9b..6aabc82 100644 --- a/midas/checker/types.py +++ b/midas/checker/types.py @@ -362,9 +362,6 @@ def substitute_typevars(type: Type, substitutions: dict[str, Type]) -> Type: case UnknownType() | UnitType(): return type - case TopType() | GenericType(): - raise NotImplementedError(f"Unsupported type {type}") - # Ensure exhaustiveness case _: assert_never(type)