MCPcopy Create free account
hub / github.com/celery/celery / fromkeys

Method fromkeys

celery/utils/collections.py:317–320  ·  view source on GitHub ↗

Create a ChainMap with a single dict created from the iterable.

(cls, iterable, *args)

Source from the content-addressed store, hash-verified

315
316 @classmethod
317 def fromkeys(cls, iterable, *args):
318 # type: (type, Iterable, *Any) -> 'ChainMap'
319 """Create a ChainMap with a single dict created from the iterable."""
320 return cls(dict.fromkeys(iterable, *args))
321
322 def copy(self):
323 # type: () -> 'ChainMap'

Callers 1

cgroup_cpu_quotaFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected