SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from typing import Callable
  2.  
  3. class SomeClass:
  4.     def __init__(self):
  5.         self.s = 'Hello'
  6.  
  7.     def display(self):
  8.         print(self.s)
  9.  
  10. x: Callable[[], SomeClass] = SomeClass
  11.  
  12. instance = x()
  13. instance.display()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top