Skip to content

Commit c818a6a

Browse files
committed
Fix typing errors in tests/run.py
1 parent 603c363 commit c818a6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def fetch_godot_binary_if_needed(build_dir: Path, godot_version_hint: str) -> Pa
3737
spec = importlib.util.spec_from_file_location(
3838
"download_python", BASEDIR / "../scripts/fetch_godot.py"
3939
)
40+
assert spec is not None and spec.loader is not None
4041
module = importlib.util.module_from_spec(spec)
4142
spec.loader.exec_module(module)
4243

@@ -162,7 +163,7 @@ def run_test(
162163
total_output = b""
163164
subprocess_done = False
164165
while True:
165-
buff: bytes = res.stdout.read1()
166+
buff: bytes = res.stdout.read1() # type: ignore
166167
total_output += buff
167168
os.write(sys.stdout.fileno(), buff)
168169
if subprocess_done:

0 commit comments

Comments
 (0)