MCPcopy Index your code
hub / github.com/hugapi/hug / initialize_handler

Method initialize_handler

hug/interface.py:360–364  ·  view source on GitHub ↗
(handler, value, context)

Source from the content-addressed store, hash-verified

358
359 @staticmethod
360 def initialize_handler(handler, value, context):
361 try: # It's easier to ask for forgiveness than for permission
362 return handler(value, context=context)
363 except TypeError:
364 return handler(value)
365
366
367class Local(Interface):

Callers 2

validateMethod · 0.95
__call__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected