MCPcopy
hub / github.com/InstaPy/InstaPy / fire_callbacks

Method fire_callbacks

instapy/event.py:20–24  ·  view source on GitHub ↗
(self, function_name, *args, **kwargs)

Source from the content-addressed store, hash-verified

18 pass
19
20 def fire_callbacks(self, function_name, *args, **kwargs):
21 if function_name not in self.callbacks:
22 return
23 for callback in self.callbacks[function_name]:
24 callback(*args, **kwargs)
25
26 def add_callback(self, function_name, callback):
27 if function_name not in self.callbacks:

Callers 5

profile_data_updatedMethod · 0.95
commentedMethod · 0.95
likedMethod · 0.95
followedMethod · 0.95
unfollowedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected