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
Inheritance + if/elif/else chain of isinstance() doesn't constrain type as expected #4864
It looks like another case of join vs union problem plus a complex binder situation. Why can't you just use obj: Union[B, C] in the signature of your function?
I would say this is a relatively low priority. There may be some binder refactoring later, then this will probably be easier to fix.
On Fri, Apr 6, 2018, 4:54 PM Ivan Levkivskyi ***@***.***> wrote:
It looks like another case of join vs union problem plus a complex binder
situation. Why can't you just use obj: Union[B, C] in the signature of
your function?
I would say this is a relatively low priority. There may be some binder
refactoring later, then this will probably be easier to fix.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4864 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADgvnq1th1oBsApaSy1rQDEGWtUnYqyVks5tmAAfgaJpZM4TJiqZ>
.
Activity
ilevkivskyi commentedon Apr 6, 2018
It looks like another case of join vs union problem plus a complex binder situation. Why can't you just use
obj: Union[B, C]in the signature of your function?I would say this is a relatively low priority. There may be some binder refactoring later, then this will probably be easier to fix.
osandov commentedon Apr 7, 2018
hauntsaninja commentedon Dec 27, 2025
This was fixed in #18538