22 May
2019
22 May
'19
10:01 a.m.
Happy to see positive reactions, I'll get started on the implementation in typing-extensions. Bernat; I'm not sure I follow your question:
Do we get?
get_type_hints(Student, include_extras=True) == { 'name': UnsignedShort}
or
get_type_hints(Student, include_extras=True) == { 'name': Annotated[int, struct2.ctype('H')]}
UnsignedShort == Annotated[int, struct2.ctype('H') so both these equalities should hold. Does that make sense? Till