Skip to content

Commit

Permalink
fix pyright errors in python_files
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Oct 31, 2024
1 parent 17788c5 commit 94d4c3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python_files/tests/test_create_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def redirect_io(stream: str, new_stream):
class CustomIO(io.TextIOWrapper):
"""Custom stream object to replace stdio."""

name: str = "customio"
name: str = "customio" # type: ignore

def __init__(self, name: str, encoding="utf-8", newline=None):
self._buffer = io.BytesIO()
Expand Down
2 changes: 1 addition & 1 deletion python_files/tests/test_get_variable_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def set_global_variable(value):
# setting on the module allows tests to set a variable that the module under test can access
get_variable_info.test_variable = value # pyright: ignore[reportGeneralTypeIssues]
get_variable_info.test_variable = value # pyright: ignore[reportGeneralTypeIssues] # type: ignore


def get_global_variable():
Expand Down

0 comments on commit 94d4c3f

Please sign in to comment.