Skip to content

Commit 17d0cd5

Browse files
committed
Fix errors
1 parent 408dce0 commit 17d0cd5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/libregrtest/single.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def regrtest_runner(result: TestResult, test_func, runtests: RunTests) -> None:
145145

146146

147147
# Storage of uncollectable GC objects (gc.garbage)
148-
GC_GARBAGE = []
148+
GC_GARBAGE: list[object] = []
149149

150150

151151
def _load_run_test(result: TestResult, runtests: RunTests) -> None:

Tools/build/check_extension_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def get_location(self, modinfo: ModuleInfo) -> pathlib.Path | None:
463463
def _check_file(self, modinfo: ModuleInfo, spec: ModuleSpec) -> None:
464464
"""Check that the module file is present and not empty"""
465465
if spec.loader is BuiltinImporter: # type: ignore[comparison-overlap]
466-
return
466+
return # type: ignore[unreachable]
467467
try:
468468
assert spec.origin is not None
469469
st = os.stat(spec.origin)

0 commit comments

Comments
 (0)