Skip to content

Commit

Permalink
Update src/trio/_tests/test_exports.py
Browse files Browse the repository at this point in the history
Co-authored-by: John Litborn <[email protected]>
  • Loading branch information
graingert and jakkdl authored Dec 21, 2024
1 parent d055b38 commit afa13f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/trio/_tests/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,7 @@ def lookup_symbol(symbol: str) -> dict[str, str]:
elif tool == "mypy":
# load the cached type information
cached_type_info = cache_json["names"][class_name]
# 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!
assert "node" not in cached_type_info
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!"
cached_type_info = lookup_symbol(cached_type_info["cross_ref"])

assert "node" in cached_type_info
Expand Down

0 comments on commit afa13f5

Please sign in to comment.