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
This could work, but feels a bit clunky. It would be much nicer if isinstance could work without having to check if it's a param.rx and then use pipe, e.g. by creating a dynamic class that inherits the type of the first definition, or any other way to override isinstance checks.
Describe alternatives you've considered
I have of course tried if it already works, but it doesn't seem to
As a clutch, it does help. The preferred interface would be to not have to check for isinstance(_, param.rx). Unfortunately the only method that I know would work is like attrs, but it is quite a redactor for that.
I'm still getting a hang of the .rx interface. I guess neither approach will work with if.
Is your feature request related to a problem? Please describe.
I couldn't find an relevant information on how to do an
isinstance
check of the inner object of theparam.rx
. Right now I have:This could work, but feels a bit clunky. It would be much nicer if
isinstance
could work without having to check if it's aparam.rx
and then usepipe
, e.g. by creating a dynamic class that inherits the type of the first definition, or any other way to overrideisinstance
checks.Describe alternatives you've considered
I have of course tried if it already works, but it doesn't seem to
but this doesn't work
The text was updated successfully, but these errors were encountered: