Created
December 10, 2019 15:24
-
-
Save prostomarkeloff/f807db5e7b953ba914a2b1d152b61cb9 to your computer and use it in GitHub Desktop.
Pycharm bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contextvars import ContextVar | |
class MySuperObject: | |
def hello(self): | |
print("Hello") | |
current_super_object: ContextVar[MySuperObject] = ContextVar("current_super_object") | |
def main(): | |
current_super_object.set(MySuperObject()) | |
obj = current_super_object.get() | |
print(obj) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment