Open AiOO opened 5 years ago
(This is not the same issue with as #116)
Since the typing module in Python 3.7 doesn't have _Union class, AttributeError occurs by below lines. To support Python 3.7 it should be fixed.
typing
_Union
AttributeError
https://github.com/nirum-lang/nirum-python/blob/2f85525a15f90b16c38650f0110d7a328d67ae79/nirum/_compat.py#L28-L43
p.s. @kanghyojun Could you explain why you used _Union instead of Union?
Union
UnionMeta
_SpecialForm
It seems need to be fixed. But from 0.5.0, nirum-python nearly used for Python target. So why don't you re-create target package on new nirum compiler(0.5.0+).
(This is not the same issue with as #116)
Since the
typing
module in Python 3.7 doesn't have_Union
class,AttributeError
occurs by below lines. To support Python 3.7 it should be fixed.https://github.com/nirum-lang/nirum-python/blob/2f85525a15f90b16c38650f0110d7a328d67ae79/nirum/_compat.py#L28-L43
p.s. @kanghyojun Could you explain why you used
_Union
instead ofUnion
?Relative links
UnionMeta
and added_Union
andUnion
_Union
.Union
is now using the new class_SpecialForm
.