feat(consider): Make isinstance(ibis.Deferred, ibis.Value)
return true
#9936
Labels
feature
Features or general enhancements
Is your feature request related to a problem?
I have several util functions that I want to make polymorphic between ibis and vanilla python types:
The first time I implemented these, I forgot to include the
Deferred
in the instance check, and that led to errors. Really what I am trying to test for is "is this an ibis thing that I can call ibis APIs on?" IDK, it might be a nice to help users avoid footguns like I ran into. On the other hand, maybe I should be forced to be explicit here.I thought I would throw this up for discussion.
What is the motivation behind your request?
No response
Describe the solution you'd like
Make
isinstance(ibis.Deferred, ir.Value)
return TrueWhat version of ibis are you running?
main
What backend(s) are you using, if any?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: