Skip to content

Commit

Permalink
Bump mypy to 1.15.0 (#13473)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Feb 7, 2025
1 parent 94ac7c4 commit 73ebb9d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion stubs/protobuf/google/protobuf/reflection.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
4 changes: 0 additions & 4 deletions stubs/pyasn1/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions stubs/pyasn1/pyasn1/type/univ.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down

0 comments on commit 73ebb9d

Please sign in to comment.