constructors: Fix defaulted TypeVars (#7965)

From the list in https://github.com/microsoft/pyright/issues/3501
This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2022-05-27 07:32:56 +01:00
1 parent 62a8a6922c
commit 789c12ad90
5 files changed
+23 -8

No files matched your search

+4 -1
View File
@@ -14,7 +14,10 @@ _P = ParamSpec("_P")
@final
class ContextVar(Generic[_T]):
def __init__(self, name: str, *, default: _T = ...) -> None: ...
@overload
def __init__(self, name: str) -> None: ...
@overload
def __init__(self, name: str, *, default: _T) -> None: ...
@property
def name(self) -> str: ...
@overload