Advertisement
Guest User

Untitled

a guest
Sep 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. INPUT
  2.  
  3. class Foo:
  4.     def __init__(self):
  5.         pass
  6.  
  7. class Result:
  8.     def __init__(self, plip):
  9.         pass
  10.  
  11. def foofactory() -> Foo:
  12.     return Foo()
  13.  
  14. def mytest(foo:Foo) -> Result:
  15.     return Result(foo)
  16.  
  17. ##################################
  18.  
  19. OUTPUT
  20.  
  21. >>> python -m exekall.main run mycode.py --goal '*Result' --dry-run
  22. The following expressions will be executed:
  23. foofactory:mytest
  24. Foo:mytest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement