Hint that the type of a method's return-value is a class type
https://stackoverflow.com/questions/77013776/hint-that-the-type-of-a-methods-return-value-is-a-class-type
WebAug 31, 2023 · Viewed 89 times. 0. How can I hint that the type of a method's return-value is a class type? For example: def myMethod(x: int, y: str) -> object: ... Does object hint that the method returns an instance of some class (i.e., does it hint that the type of the method's return-value is a class type)?
DA: 85 PA: 58 MOZ Rank: 61