Skip to content

Commit afa13f5

Browse files
graingertjakkdl
andauthored
Update src/trio/_tests/test_exports.py
Co-authored-by: John Litborn <[email protected]>
1 parent d055b38 commit afa13f5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/trio/_tests/test_exports.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,7 @@ def lookup_symbol(symbol: str) -> dict[str, str]:
384384
elif tool == "mypy":
385385
# load the cached type information
386386
cached_type_info = cache_json["names"][class_name]
387-
# previously this was an 'if' but it seems it's no longer possible
388-
# for this cache to contain 'node', if this assert raises for you
389-
# please let us know!
390-
assert "node" not in cached_type_info
387+
assert "node" not in cached_type_info, "previously this was an 'if' but it seems it's no longer possible for this cache to contain 'node', if this assert raises for you please let us know!"
391388
cached_type_info = lookup_symbol(cached_type_info["cross_ref"])
392389

393390
assert "node" in cached_type_info

0 commit comments

Comments
 (0)