Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add unit test for Union[int, Any] * Allow None when Any or object is in Union Resolves #3444 * Add changelog entry for #3444 * Prefer `is_none_type()` over `type_ is NoneType` * fix(lint): remove useless import Co-authored-by: PrettyWood <em.jolibois@gmail.com>
- Loading branch information
1 parent
91ecfd6
commit 6ad80cd
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix issue where `None` was considered invalid when using a `Union` type containing `Any` or `object` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters