Skip to content

Ensure optional type include None type#106

Merged
dahlia merged 1 commit intonirum-lang:maintenance-0.6from
kanghyojun:test-optional-type
Jan 8, 2018
Merged

Ensure optional type include None type#106
dahlia merged 1 commit intonirum-lang:maintenance-0.6from
kanghyojun:test-optional-type

Conversation

@kanghyojun
Copy link
Copy Markdown
Member

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.

@kanghyojun kanghyojun self-assigned this Jan 8, 2018
@kanghyojun kanghyojun requested a review from dahlia January 8, 2018 14:09
CHANGES.rst Outdated

To be released.

- Added ``is_optional_type`` to ensure optional type includes ``None`` type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_optional_type() would be better.

@dahlia dahlia merged commit 328b4af into nirum-lang:maintenance-0.6 Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants