Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing annotations not working as intented #15

Open
skalecki-imblox opened this issue Mar 25, 2021 · 0 comments
Open

Typing annotations not working as intented #15

skalecki-imblox opened this issue Mar 25, 2021 · 0 comments

Comments

@skalecki-imblox
Copy link

Hi! I've found a difference between the built-in version of contextvars and this backport.

Generic type annotations are not supported. This works in python:

 c: contextvars.ContextVar[str] = contextvars.ContextVar('test')

but not in this backport. It caused a pretty surprising issue with celery celery/celery#6534

Would it be possible to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant