Open glyph opened 4 years ago
Is this a duplicate of https://github.com/python/mypy/issues/3924 ? Or the issue Jukka alluded to in https://github.com/python/mypy/issues/8978#issuecomment-643375262, "a known very old bug that generic functions when passed as arguments to another generic functions don't work"?
The workaround seems to be
def decorator_transformer(
decorator: Callable[[_FirstDecoratee], _FirstDecoratee]
) -> Callable[[_SecondDecoratee], _SecondDecoratee]:
which sacrifices a little bit of strictness but manages to mostly maintain the desired shape
Please provide more information to help us understand the issue:
Bug.
No error.
mypy 0.782 Python 3.8.5
Yes (0.790+dev.ffd9d1cdff4af3b482d4dd1f871fd1dc5b39eebb)