mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 21:15:17 +08:00
constructors: Fix defaulted TypeVars (#7965)
From the list in https://github.com/microsoft/pyright/issues/3501
This commit is contained in:
1 parent
62a8a6922c
commit
789c12ad90
5 files changed
+23
-8
No files matched your search
@@ -91,7 +91,10 @@ else:
|
||||
def sort_dictionary(d, key: Any | None = ...): ...
|
||||
|
||||
class OrderedSet(set[_T], Generic[_T]):
|
||||
def __init__(self, d: Iterable[_T] | None = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, d: None = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, d: Iterable[_T]) -> None: ...
|
||||
def add(self, element: _T) -> None: ...
|
||||
def remove(self, element: _T) -> None: ...
|
||||
def insert(self, pos: int, element: _T) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user