-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
UserBugs reported by external users that should be prioritisedBugs reported by external users that should be prioritisedhelion
Milestone
Description
Describe the Bug
from typing import *
_C = TypeVar("_C")
class _Decorator(Protocol):
def __call__(self, fn: _C) -> _C: ...
def api() -> _Decorator:
def _impl(fn: _C) -> _C:
...
return _impl # E: Returned type `[_C](fn: _C) -> _C` is not assignable to declared return type `_Decorator`
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Metadata
Metadata
Assignees
Labels
UserBugs reported by external users that should be prioritisedBugs reported by external users that should be prioritisedhelion