Skip to content

Instantly share code, notes, and snippets.

@prostomarkeloff
Created December 10, 2019 15:24
Show Gist options
  • Save prostomarkeloff/f807db5e7b953ba914a2b1d152b61cb9 to your computer and use it in GitHub Desktop.
Save prostomarkeloff/f807db5e7b953ba914a2b1d152b61cb9 to your computer and use it in GitHub Desktop.
Pycharm bug
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