Skip to content

Incompatible with typing-extensions 4.6 #197

@lephuongbg

Description

@lephuongbg

Got this error when upgrading typing-extensions to 4.6. pydash works fine with typing-extensions 4.5.

utils/__init__.py:20: in <module>
    from pydash import last
.venv/lib/python3.10/site-packages/pydash/__init__.py:170: in <module>
    from .objects import (
.venv/lib/python3.10/site-packages/pydash/objects.py:17: in <module>
    from .utilities import PathToken, to_path, to_path_tokens
.venv/lib/python3.10/site-packages/pydash/utilities.py:577: in <module>
    class MemoizedFunc(Protocol[P, T, T2]):
../lang/lib/python3.10/typing.py:312: in inner
    return func(*args, **kwds)
.venv/lib/python3.10/site-packages/typing_extensions.py:672: in __class_getitem__
    raise TypeError(
E   TypeError: Parameters to Protocol[...] must all be type variables. Parameter 1 is ~P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions