Skip to content

Commit

Permalink
fixes for pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
tigarmo committed Aug 29, 2023
1 parent 243e2bd commit baa19b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion craft_cli/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __init__(
# ignoring the type of the first parameter below, as documentation allows to use None
# to make it use a NULL security descriptor:
# https://www.markjour.com/docs/pywin32-docs/PySECURITY_ATTRIBUTES.html
self.read_pipe, self.write_pipe = win32pipe.FdCreatePipe(None, 0, binary_mode)
self.read_pipe, self.write_pipe = win32pipe.FdCreatePipe(None, 0, binary_mode) # type: ignore[reportGeneralTypeIssues]
else:
self.read_pipe, self.write_pipe = os.pipe()

Expand Down
1 change: 1 addition & 0 deletions craft_cli/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def assert_interactions(self, expected_call_list):

for _pos, stored_call in enumerate(self.interactions):
if stored_call == expected_call_list[0]:
pos = _pos
break
else:
pos = 0
Expand Down

0 comments on commit baa19b5

Please sign in to comment.