Re: [PATCH v6 19/19] qapi/introspect.py: add SchemaMetaType enum

2021-02-16 Thread Markus Armbruster
John Snow writes: > On 2/16/21 4:24 AM, Markus Armbruster wrote: >> John Snow writes: >> >>> Follows the qapi/introspect.py definition of the same; this adds a more >>> precise typing to _gen_tree's mtype parameter. >>> >>> NB: print(SchemaMetaType.BUILTIN) would produce the string >>> "SchemaM

Re: [PATCH v6 19/19] qapi/introspect.py: add SchemaMetaType enum

2021-02-16 Thread John Snow
On 2/16/21 4:24 AM, Markus Armbruster wrote: John Snow writes: Follows the qapi/introspect.py definition of the same; this adds a more precise typing to _gen_tree's mtype parameter. NB: print(SchemaMetaType.BUILTIN) would produce the string "SchemaMetaType.BUILTIN", but when using format stri

Re: [PATCH v6 19/19] qapi/introspect.py: add SchemaMetaType enum

2021-02-16 Thread Markus Armbruster
John Snow writes: > Follows the qapi/introspect.py definition of the same; this adds a more > precise typing to _gen_tree's mtype parameter. > > NB: print(SchemaMetaType.BUILTIN) would produce the string > "SchemaMetaType.BUILTIN", but when using format strings (.format or > f-strings), > it rel

[PATCH v6 19/19] qapi/introspect.py: add SchemaMetaType enum

2021-02-15 Thread John Snow
Follows the qapi/introspect.py definition of the same; this adds a more precise typing to _gen_tree's mtype parameter. NB: print(SchemaMetaType.BUILTIN) would produce the string "SchemaMetaType.BUILTIN", but when using format strings (.format or f-strings), it relies on the __format__ method defin