How can I alert python of the return type of a pickle.load() command within a class where load() command returns an object of the class.
I had hoped the straight-forward
class myClass:
@classmethod
def load(cls, filename) -> myClass:
with open(filename,'rb') as f:
return pickle.load(f)
would work, but python complains that myClass is not defined.
I'd like for python to know the class type for code completion, etc.