mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
builtins: more updates for py310 (#5290)
This commit is contained in:
@@ -183,6 +183,8 @@ class int:
|
||||
def denominator(self) -> int: ...
|
||||
def conjugate(self) -> int: ...
|
||||
def bit_length(self) -> int: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def bit_count(self) -> int: ...
|
||||
def to_bytes(self, length: int, byteorder: str, *, signed: bool = ...) -> bytes: ...
|
||||
@classmethod
|
||||
def from_bytes(
|
||||
@@ -1371,7 +1373,12 @@ if sys.platform == "win32":
|
||||
|
||||
class ArithmeticError(_StandardError): ...
|
||||
class AssertionError(_StandardError): ...
|
||||
class AttributeError(_StandardError): ...
|
||||
|
||||
class AttributeError(_StandardError):
|
||||
if sys.version_info >= (3, 10):
|
||||
name: str
|
||||
obj: object
|
||||
|
||||
class BufferError(_StandardError): ...
|
||||
class EOFError(_StandardError): ...
|
||||
|
||||
@@ -1383,7 +1390,11 @@ class ImportError(_StandardError):
|
||||
|
||||
class LookupError(_StandardError): ...
|
||||
class MemoryError(_StandardError): ...
|
||||
class NameError(_StandardError): ...
|
||||
|
||||
class NameError(_StandardError):
|
||||
if sys.version_info >= (3, 10):
|
||||
name: str
|
||||
|
||||
class ReferenceError(_StandardError): ...
|
||||
class RuntimeError(_StandardError): ...
|
||||
|
||||
@@ -1396,6 +1407,9 @@ class SyntaxError(_StandardError):
|
||||
offset: Optional[int]
|
||||
text: Optional[str]
|
||||
filename: Optional[str]
|
||||
if sys.version_info >= (3, 10):
|
||||
end_lineno: Optional[int]
|
||||
end_offset: Optional[int]
|
||||
|
||||
class SystemError(_StandardError): ...
|
||||
class TypeError(_StandardError): ...
|
||||
@@ -1459,3 +1473,6 @@ class ImportWarning(Warning): ...
|
||||
class UnicodeWarning(Warning): ...
|
||||
class BytesWarning(Warning): ...
|
||||
class ResourceWarning(Warning): ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
class EncodingWarning(Warning): ...
|
||||
|
||||
Reference in New Issue
Block a user