nirum-lang / nirum-python

The Nirum runtime library for Python
https://nirum.org/docs/target/python.html
MIT License
8 stars 9 forks source link

Ensure optional type include `None` type #106

Closed kanghyojun closed 6 years ago

kanghyojun commented 6 years ago

Only Union type used in nirum-python is optional type . that is whydeserialize_meta could work well, even though we use is_union_type to find optional type.

But comment from other pull request suggest adding is_optional_type to ensure None is in it.

After we release nirum 0.6.2, replace nirum._compat.is_optional_type into nirum_wsgi.is_optional_type.