You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Any apparently not considered part of Union[Any, builtins.None] #3472
I think the problem is not with Jukka's PR but in the logic of --warn-return-any. It should not emit warning if Any is a proper subtype of the declared return type. I have an idea for a very simple fix, if it will work, then I will make a PR shortly.
Activity
gvanrossum commentedon May 30, 2017
That's @JukkaL's PR #3086.
ilevkivskyi commentedon May 30, 2017
I think the problem is not with Jukka's PR but in the logic of
--warn-return-any. It should not emit warning ifAnyis a proper subtype of the declared return type. I have an idea for a very simple fix, if it will work, then I will make a PR shortly.ilevkivskyi commentedon May 30, 2017
OK, here is the PR #3473
Don't warn about returning Any if it is a proper subtype of the retur…
OddBloke commentedon May 30, 2017
Thanks all! When might we expect to see this in a release?
JukkaL commentedon May 30, 2017
We typically have a release every 2 months or so, so the next release could be June/Julyish.