For example, calling the following methods may or may not raise a ParameterTypeError. Methods 1 and 3 pass, method 3 fails.
class ExClass:
@enforce_type_hints
def method1(self: int):
pass
@classmethod
@enforce_type_hints
def method2(cls: int):
pass
@enforce_type_hints
@classmethod
def method3(cls: int):
pass
For example, calling the following methods may or may not raise a
ParameterTypeError. Methods 1 and 3 pass, method 3 fails.