in azure_functions_worker/bindings/meta.py [0:0]
def get_binding(bind_name: str,
is_deferred_binding: typing.Optional[bool] = False)\
-> object:
"""
First checks if the binding is a non-deferred binding. This is
the most common case.
Second checks if the binding is a deferred binding.
If the binding is neither, it's a generic type.
"""
binding = None
if binding is None and not is_deferred_binding:
binding = BINDING_REGISTRY.get(bind_name)
if binding is None and is_deferred_binding:
binding = DEFERRED_BINDING_REGISTRY.get(bind_name)
if binding is None:
binding = generic.GenericBinding
return binding