Advertisement
Guest User

Untitled

a guest
Sep 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1.  
  2.  
  3. class Foo:
  4.     def __init__(self):
  5.         pass
  6.  
  7.     @classmethod
  8.     def foofactory(cls) -> 'Foo':
  9.         return cls()
  10.  
  11. class FooDerived(Foo):
  12.     pass
  13.  
  14. class Result:
  15.     def __init__(self, plip):
  16.         pass
  17.  
  18.  
  19. def mytest(foo:Foo) -> Result:
  20.     return Result(foo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement