Skip to content

Commit 10f1bc9

Browse files
committed
Fix a problem generating fully qualified name for FEATURE_FLAGS
FEATURE_FLAGS is an object not a class, which confuses my code that deduplicates re-exported symbols. I have added FEATURE_FLAGS as a special case.
1 parent 9d7e3da commit 10f1bc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"labthings_fastapi.actions.ActionManager",
7979
"labthings_fastapi.descriptors.endpoint.EndpointDescriptor",
8080
"labthings_fastapi.utilities.introspection.EmptyObject",
81+
"labthings_fastapi.feature_flags.FEATURE_FLAGS",
8182
}
8283

8384
# Everything in `labthings_fastapi` is documented elsewhere, so we
@@ -86,7 +87,7 @@
8687
canonical_fq_names.update(
8788
f"{obj.__module__}.{obj.__qualname__}"
8889
for obj in top_level_objects
89-
if not inspect.ismodule(obj)
90+
if not inspect.ismodule(obj) and obj is not lt.FEATURE_FLAGS
9091
)
9192

9293

0 commit comments

Comments
 (0)