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

Function size

googlemaps/convert.py:279–287  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

277
278
279def size(arg):
280 if isinstance(arg, int):
281 return "%sx%s" % (arg, arg)
282 elif _is_list(arg):
283 return "%sx%s" % (arg[0], arg[1])
284
285 raise TypeError(
286 "Expected a size int or list, "
287 "but got %s" % type(arg).__name__)
288
289
290def decode_polyline(polyline):

Callers

nothing calls this directly

Calls 1

_is_listFunction · 0.85

Tested by

no test coverage detected