MCPcopy
hub / github.com/psf/black / _get_key

Method _get_key

src/black/trans.py:357–363  ·  view source on GitHub ↗

Returns: A unique identifier that is used internally to map @string to a group of custom splits.

(string: str)

Source from the content-addressed store, hash-verified

355
356 @staticmethod
357 def _get_key(string: str) -> CustomSplitMapKey:
358 """
359 Returns:
360 A unique identifier that is used internally to map @string to a
361 group of custom splits.
362 """
363 return (id(string), string)
364
365 def add_custom_splits(
366 self, string: str, custom_splits: Iterable[CustomSplit]

Callers 3

add_custom_splitsMethod · 0.95
pop_custom_splitsMethod · 0.95
has_custom_splitsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected