| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| u = Union[int, Any] | ||
| self.assertEqual(u, Any) | ||
| u = Union[Any, int] | ||
| self.assertEqual(u, Any) |
There was a problem hiding this comment.
Why not keep the test but change the asserts to test for the new behavior?
Sorry, something went wrong.
|
|
||
| - Similar for object:: | ||
|
|
||
| Union[int, object] == object |
There was a problem hiding this comment.
I'd keep this even though it's not a special case -- it's a nice edge case that confirms the rule.
Sorry, something went wrong.
|
@gvanrossum I agree with both points. Implemented this in a new commit. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #285
@gvanrossum Please take a look.
Later I will make a PR to python/peps and will submit a documentation patch to b.p.o.