Open tusharsadhwani opened 6 months ago
Seems more important to raise an error saying that the nested union is useless.
saying that the nested union is useless
More like a single member union Union[X]
can always be replaced by X
, I believe.
I'd be up for writing that rule. Y067? Does that work?
I guess it's sort of redundant with Y037, which tells you to use |
instead of Union
. I wouldn't really be opposed to a PR here but I'm not convinced there's a serious problem our existing checks don't catch.
For code like:
Y016 should be raised but isn't.