API Types: treat '_*' as private fields and dont inspect them
This commit is contained in:
parent
d8ff8b042f
commit
cb13ddb464
@ -76,6 +76,7 @@ def type_to_dict(t: Any, scope: str = "", type_map: dict[TypeVar, type] = {}) ->
|
|||||||
properties = {
|
properties = {
|
||||||
f.name: type_to_dict(f.type, f"{scope} {t.__name__}.{f.name}", type_map)
|
f.name: type_to_dict(f.type, f"{scope} {t.__name__}.{f.name}", type_map)
|
||||||
for f in fields
|
for f in fields
|
||||||
|
if not f.name.startswith("_")
|
||||||
}
|
}
|
||||||
|
|
||||||
required = set()
|
required = set()
|
||||||
|
Loading…
Reference in New Issue
Block a user