mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-13 19:41:07 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -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