Closed kanghyojun closed 8 years ago
A return type annotation of __nirum_serialize__ has to show the most primitive type of boxed type even if a boxed type boxes another boxed type.
__nirum_serialize__
For example:
boxed a (text); boxed b (a);
It has to be represented in Python to:
class A: def __nirum_serialize__(self) -> str: ... class B: def __nirum_serialize__(self) -> str: ...
@admire93 Isn't this solved by the PR #5?
@dahlia i think i reported this issue when i misunderstood about boxed type. Now boxed type shows appropriate annotation. so it have to be closed.
A return type annotation of
__nirum_serialize__
has to show the most primitive type of boxed type even if a boxed type boxes another boxed type.For example:
It has to be represented in Python to: