mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 20:57:03 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
1 parent
acc51542c9
commit
126768408a
488 files changed
+2259
-4044
No files matched your search
@@ -1,4 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterator, Mapping as DictMixin
|
||||
from typing import TypeVar
|
||||
|
||||
@@ -14,8 +13,8 @@ class LazyDict(DictMixin[str, _VT]):
|
||||
|
||||
class LazyList(list[_T]):
|
||||
# does not return `Self` type:
|
||||
def __new__(cls, fill_iter: Incomplete | None = None) -> LazyList[_T]: ...
|
||||
def __new__(cls, fill_iter=None) -> LazyList[_T]: ...
|
||||
|
||||
class LazySet(set[_T]):
|
||||
# does not return `Self` type:
|
||||
def __new__(cls, fill_iter: Incomplete | None = None) -> LazySet[_T]: ...
|
||||
def __new__(cls, fill_iter=None) -> LazySet[_T]: ...
|
||||
Reference in new issue
Block a user