We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
names
1 parent 7707361 commit e99b69fCopy full SHA for e99b69f
src/trio/_tests/test_exports.py
@@ -390,11 +390,13 @@ def lookup_symbol(symbol: str) -> dict[str, str]:
390
391
assert "node" in cached_type_info
392
node = cached_type_info["node"]
393
- static_names = no_hidden(k for k in node["names"] if not k.startswith("."))
+ static_names = no_hidden(
394
+ k for k in node.get("names", ()) if not k.startswith(".")
395
+ )
396
for symbol in node["mro"][1:]:
397
node = lookup_symbol(symbol)["node"]
398
static_names |= no_hidden(
- k for k in node["names"] if not k.startswith(".")
399
400
)
401
static_names -= ignore_names
402
0 commit comments