Skip to content

Commit 7e48c4e

Browse files
committed
Appease mypy
1 parent 6166d66 commit 7e48c4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/runfiles/runfiles_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ def testRlocationArgumentValidation(self) -> None:
6666
)
6767

6868
def testRlocationWithData(self) -> None:
69-
rf = runfiles.Create()
70-
settings_path = rf.Rlocation(
69+
r = runfiles.Create()
70+
assert r is not None # mypy doesn't understand the unittest api.
71+
settings_path = r.Rlocation(
7172
"rules_python/tests/support/current_build_settings.json"
7273
)
74+
assert settings_path is not None
7375
settings = json.loads(pathlib.Path(settings_path).read_text())
7476
self.assertIn("bootstrap_impl", settings)
7577

0 commit comments

Comments
 (0)