MCPcopy
hub / github.com/InternLM/lmdeploy / __add__

Method __add__

lmdeploy/turbomind/checkpoint.py:46–52  ·  view source on GitHub ↗

``pfx + 'foo'`` -> Prefix at ``'parent.foo'`` (default '.' separator). ``key`` may be ``str`` or ``int``; ints are stringified.

(self, key)

Source from the content-addressed store, hash-verified

44 # ----- path navigation -----
45
46 def __add__(self, key) -> Prefix:
47 """``pfx + 'foo'`` -> Prefix at ``'parent.foo'`` (default '.'
48 separator).
49
50 ``key`` may be ``str`` or ``int``; ints are stringified.
51 """
52 return self.append(str(key))
53
54 def append(self, name: str, sep: str = '.') -> Prefix:
55 """Return a new Prefix with ``name`` appended via ``sep``.

Callers

nothing calls this directly

Calls 1

appendMethod · 0.95

Tested by

no test coverage detected