-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongtopic-finalPEP 591PEP 591topic-paramspecPEP 612, ParamSpec, ConcatenatePEP 612, ParamSpec, Concatenate
Description
This code produces a strange error:
from typing import ParamSpec, Generic, final
_P = ParamSpec("_P")
@final # E: Argument 1 to "final" has incompatible type "Type[_lru_cache_wrapper[Any]]"; expected "Type[_lru_cache_wrapper[Any]]"
class _lru_cache_wrapper(Generic[_P]):
pass
I will take a look, hopefully can fix it today.
Originally seen in python/typeshed#6986
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-finalPEP 591PEP 591topic-paramspecPEP 612, ParamSpec, ConcatenatePEP 612, ParamSpec, Concatenate