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
Warning:(139, 17) Expected type 'Type[CommandSet]', got 'Type[SettableWatcher]' instead
How can I fix that?
Btw the type hint seems to be not precise. It should return only those subtypes of CommandSets, which match the commandset_type parameter, but now it is just:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am introducing CommandSets to my app.
I have a global setting, which should be monitored by some command sets.
My idea was to create a SettableWatcher ABC, and then find the command sets to process:
However, type checks are failing:
How can I fix that?
Btw the type hint seems to be not precise. It should return only those subtypes of CommandSets, which match the
commandset_type
parameter, but now it is just:Beta Was this translation helpful? Give feedback.
All reactions