MCPcopy
hub / github.com/waditu/tushare / has_hook

Method has_hook

tushare/util/demjson.py:3451–3455  ·  view source on GitHub ↗
(self, hook_name)

Source from the content-addressed store, hash-verified

3449
3450
3451 def has_hook(self, hook_name):
3452 if not hook_name or hook_name not in self.all_hook_names:
3453 return False
3454 hook = getattr( self, hook_name + '_hook' )
3455 return callable(hook)
3456
3457
3458 def call_hook(self, hook_name, input_object, position=None, *args, **kwargs):

Callers 7

decode_numberMethod · 0.95
decode_stringMethod · 0.95
decode_identifierMethod · 0.95
decode_compositeMethod · 0.95
_do_encodeMethod · 0.95
encode_compositeMethod · 0.95
try_encode_defaultMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected