Skip to content

Typing annotations not working as intented #15

Open
@skalecki-imblox

Description

@skalecki-imblox

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions