Skip to content

Commit 94d4c3f

Browse files
committed
fix pyright errors in python_files
1 parent 17788c5 commit 94d4c3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python_files/tests/test_create_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def redirect_io(stream: str, new_stream):
265265
class CustomIO(io.TextIOWrapper):
266266
"""Custom stream object to replace stdio."""
267267

268-
name: str = "customio"
268+
name: str = "customio" # type: ignore
269269

270270
def __init__(self, name: str, encoding="utf-8", newline=None):
271271
self._buffer = io.BytesIO()

python_files/tests/test_get_variable_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

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

88

99
def get_global_variable():

0 commit comments

Comments
 (0)