MCPcopy
hub / github.com/ray-project/ray / get

Method get

python/ray/runtime_env/runtime_env.py:447–453  ·  view source on GitHub ↗
(self, name, default=None, data_class=None)

Source from the content-addressed store, hash-verified

445 self.__setitem__(name, value)
446
447 def get(self, name, default=None, data_class=None):
448 if name not in self:
449 return default
450 if not data_class:
451 return self.__getitem__(name)
452 else:
453 return from_dict(data_class=data_class, data=self.__getitem__(name))
454
455 @classmethod
456 def deserialize(cls, serialized_runtime_env: str) -> "RuntimeEnv": # noqa: F821

Callers 15

submit_jobMethod · 0.95
__init__Method · 0.95
has_working_dirMethod · 0.95
working_dir_uriMethod · 0.95
working_dirMethod · 0.95
py_executableMethod · 0.95
nsightMethod · 0.95
rocprof_sysMethod · 0.95
env_varsMethod · 0.95
has_condaMethod · 0.95
has_pipMethod · 0.95
has_uvMethod · 0.95

Calls 2

from_dictFunction · 0.90
__getitem__Method · 0.45

Tested by

no test coverage detected