Replace Incomplete | None = None in stdlib (#14083)

This commit is contained in:
Sebastian Rittau
2025-05-16 15:43:52 +02:00
committed by GitHub
parent 5785616f7a
commit 0125fe2848
12 changed files with 50 additions and 62 deletions
+1 -2
View File
@@ -7,7 +7,6 @@
# (since type checkers don't see `complex` as a subtype of `numbers.Complex`,
# nor `float` as a subtype of `numbers.Real`, etc.)
from _typeshed import Incomplete
from abc import ABCMeta, abstractmethod
from typing import ClassVar, Literal, Protocol, overload
@@ -166,7 +165,7 @@ class Integral(Rational, _IntegralLike):
def __int__(self) -> int: ...
def __index__(self) -> int: ...
@abstractmethod
def __pow__(self, exponent, modulus: Incomplete | None = None) -> _IntegralLike: ...
def __pow__(self, exponent, modulus=None) -> _IntegralLike: ...
@abstractmethod
def __lshift__(self, other) -> _IntegralLike: ...
@abstractmethod