MCPcopy Index your code
hub / github.com/googlemaps/google-maps-services-python / _has_method

Function _has_method

googlemaps/convert.py:195–205  ·  view source on GitHub ↗

Returns true if the given object has a method with the given name. :param arg: the object :param method: the method name :type method: string :rtype: bool

(arg, method)

Source from the content-addressed store, hash-verified

193
194
195def _has_method(arg, method):
196 """Returns true if the given object has a method with the given name.
197
198 :param arg: the object
199
200 :param method: the method name
201 :type method: string
202
203 :rtype: bool
204 """
205 return hasattr(arg, method) and callable(getattr(arg, method))
206
207
208def components(arg):

Callers 2

_is_listFunction · 0.85
timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected