mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-30 11:52:49 +08:00
Replace Incomplete | None = None in stdlib (#14083)
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user