API Types: treat '_*' as private fields and dont inspect them
Some checks failed
buildbot/nix-eval Build done.
checks / checks-impure (pull_request) Successful in 2m8s

This commit is contained in:
Johannes Kirschbauer 2024-07-06 16:17:44 +02:00
parent be71b17474
commit 3be084941f
Signed by: hsjobeki
SSH Key Fingerprint: SHA256:vX3utDqig7Ph5L0JPv87ZTPb/w7cMzREKVZzzLFg9qU

View File

@ -76,6 +76,7 @@ def type_to_dict(t: Any, scope: str = "", type_map: dict[TypeVar, type] = {}) ->
properties = {
f.name: type_to_dict(f.type, f"{scope} {t.__name__}.{f.name}", type_map)
for f in fields
if not f.name.startswith("_")
}
required = set()