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
My workaround was to use categories and skip some reuse but it would have made my code much easier if I could have gotten the actual object instance and the key under which the decorated object was found on whatever it was found.
The text was updated successfully, but these errors were encountered:
I would like to add that in our API we now use venusian like this:
defstep_names_and_handlers_for_category_name(self, *category_names):
handlers= []
scanner=venusian.Scanner(handlers=handlers)
iflen(category_names) ==0:
category_names=NoneclassMockModule(object):
# This seems to be the only way to force the scanner to scan # the actual instance instead of the classgame_run=selfdelegate=self.delegatescanner.scan(MockModule, categories=category_names)
returnhandlers
To scan instances of classes and venusian callbacks like this:
Oh my dear this issue is old. Sorry about that. If you have any context into this still, maybe you can propose a patch? I honestly don't know how to support this particular usage.
This makes it impossible to distinguish between the decorated object being inserted into an object under two names like this:
My workaround was to use categories and skip some reuse but it would have made my code much easier if I could have gotten the actual object instance and the key under which the decorated object was found on whatever it was found.
The text was updated successfully, but these errors were encountered: