Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

No special case for None in unions #8

Closed
ltworf opened this issue May 22, 2018 · 1 comment
Closed

No special case for None in unions #8

ltworf opened this issue May 22, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@ltworf
Copy link
Owner

ltworf commented May 22, 2018

In [21]: load(None, Optional[str])
    ...: 
Out[21]: 'None'

This happens.

Should NoneType be a basic type?

@ltworf ltworf added the bug Something isn't working label May 22, 2018
@ltworf
Copy link
Owner Author

ltworf commented May 23, 2018

This is not so trivial to solve, as a workaround, it is possible to set basiccast=False to avoid the issue.

ltworf added a commit that referenced this issue May 24, 2018
@ltworf ltworf closed this as completed in e495906 May 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant