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

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2025-05-15 21:37:43 +02:00
1 parent acc51542c9
commit 126768408a
488 files changed
+2259 -4044

No files matched your search

+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]: ...