diff --git a/poetry.lock b/poetry.lock index dacf46bc..610f3a0e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -928,13 +928,13 @@ windows-terminal = ["colorama (>=0.4.6)"] [[package]] name = "pyright" -version = "1.1.361" +version = "1.1.363" description = "Command line wrapper for pyright" optional = false python-versions = ">=3.7" files = [ - {file = "pyright-1.1.361-py3-none-any.whl", hash = "sha256:c50fc94ce92b5c958cfccbbe34142e7411d474da43d6c14a958667e35b9df7ea"}, - {file = "pyright-1.1.361.tar.gz", hash = "sha256:1d67933315666b05d230c85ea8fb97aaa2056e4092a13df87b7765bb9e8f1a8d"}, + {file = "pyright-1.1.363-py3-none-any.whl", hash = "sha256:d3b8d73c8d230e26cc3523862f3398032a0c39a00d7bb69dc0f595f8e888fd01"}, + {file = "pyright-1.1.363.tar.gz", hash = "sha256:00a8f0ae0e339473bb0488f8a2a2dcdf574e94a16cd7b4390d49d144714d8db2"}, ] [package.dependencies] diff --git a/tests/mcproto/protocol/helpers.py b/tests/mcproto/protocol/helpers.py index 21679ed7..ca7e55d3 100644 --- a/tests/mcproto/protocol/helpers.py +++ b/tests/mcproto/protocol/helpers.py @@ -13,7 +13,7 @@ def __init__(self, *a, **kw): self.combined_data = bytearray() @override - def __call__(self, data: bytes) -> None: # pyright: ignore[reportIncompatibleMethodOverride] + def __call__(self, data: bytes) -> None: """Override mock's ``__call__`` to extend our :attr:`.combined_data` bytearray. This allows us to keep track of exactly what data was written by the mocked write function @@ -47,7 +47,7 @@ def __init__(self, *a, combined_data: bytearray | None = None, **kw): self.combined_data = combined_data @override - def __call__(self, length: int) -> bytearray: # pyright: ignore[reportIncompatibleMethodOverride] + def __call__(self, length: int) -> bytearray: """Override mock's __call__ to make it return part of our :attr:`.combined_data` bytearray. This allows us to make the return value always be the next requested part (length) of