Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pyright from 1.1.361 to 1.1.363 #296

Merged
merged 2 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/mcproto/protocol/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading