I am trying to use type checking in Python but am running into an issue on what type of parameter should be used when referring to self
.
class MyClass:
def my_func(self: TYPE?) -> str:
return 'Hello world!'
What I am guessing is that it should be of type MyClass but I am not sure about this.