Skip to content

Commit e055e28

Browse files
committed
Appease mypy
1 parent 6166d66 commit e055e28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/runfiles/runfiles_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ 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
)
7374
settings = json.loads(pathlib.Path(settings_path).read_text())

0 commit comments

Comments
 (0)