Replace Incomplete | None = None in third party stubs (#14063)

This commit is contained in:
Sebastian Rittau
2025-05-15 21:37:43 +02:00
committed by GitHub
parent acc51542c9
commit 126768408a
488 changed files with 2259 additions and 4044 deletions
+2 -3
View File
@@ -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]: ...