Bump mypy to 1.15.0 (#13473)

This commit is contained in:
Alex Waygood
2025-02-07 19:21:40 +00:00
committed by GitHub
parent 94ac7c44d2
commit 73ebb9dfd7
4 changed files with 2 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# Type checkers that we test our stubs against. These should always
# be pinned to a specific version to make failure reproducible.
mypy==1.14.1
mypy==1.15.0
pyright==1.1.389
# pytype can be installed on Windows, but requires building wheels, let's not do that on the CI
pytype==2024.10.11; platform_system != "Windows" and python_version >= "3.10" and python_version < "3.13"

View File

@@ -1,6 +1,5 @@
class GeneratedProtocolMessageType(type):
def __new__(cls, name, bases, dictionary): ...
def __init__(self, /, name, bases, dictionary) -> None: ...
def ParseMessage(descriptor, byte_str): ...
def MakeClass(descriptor): ...

View File

@@ -1,7 +1,3 @@
# typeshed typing differences with runtime collections.OrderedDict and builtins.dict
pyasn1.codec.native.encoder.SequenceEncoder.protoDict
pyasn1.codec.native.encoder.SetEncoder.protoDict
# Attempted "__ne__" operation on ASN.1 schema object
pyasn1.type.base
pyasn1.type.univ

View File

@@ -88,9 +88,7 @@ class Boolean(Integer):
namedValues: namedval.NamedValues
typeId: int
SizedIntegerBase = int
class SizedInteger(SizedIntegerBase):
class SizedInteger(int):
bitLength: int | None
leadingZeroBits: int | None
def setBitLength(self, bitLength): ...