UserWarning occurs when using None | str
as type in dataclass and using scheam.load()
.
#407
Labels
bug
Something isn't working
Environment
What's happen?
When I exected the following python file, UserWarning occurred.
However I changed
project_name
's type fromNone | str
toOptional[str]
, UserWarning did not occurre.What do I expect ?
I expect that even if I use None | str instead of Optional[str], the UserWarning should not occur. Both None | str and Optional[str] have the same meaning.
Supplementary
Related to https://qiita.com/yuji38kwmt/items/85a8bd836f06f3df8321 .
The text was updated successfully, but these errors were encountered: