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

Class Ok

src/black/rusty.py:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class Ok(Generic[T]):
13 def __init__(self, value: T) -> None:
14 self._value = value
15
16 def ok(self) -> T:
17 return self._value
18
19
20class Err(Generic[E]):

Callers 12

do_matchMethod · 0.90
do_transformMethod · 0.90
_merge_string_groupMethod · 0.90
_validate_msgMethod · 0.90
do_matchMethod · 0.90
do_transformMethod · 0.90
_validateMethod · 0.90
do_splitter_matchMethod · 0.90
do_transformMethod · 0.90
do_splitter_matchMethod · 0.90
do_transformMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected