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

Function TErr

src/black/trans.py:60–66  ·  view source on GitHub ↗

(T)ransform Err Convenience function used when working with the TResult type.

(err_msg: str)

Source from the content-addressed store, hash-verified

58
59
60def TErr(err_msg: str) -> Err[CannotTransform]:
61 """(T)ransform Err
62
63 Convenience function used when working with the TResult type.
64 """
65 cant_transform = CannotTransform(err_msg)
66 return Err(cant_transform)
67
68
69# Remove when `simplify_power_operator_hugging` becomes stable.

Callers 9

do_matchMethod · 0.85
_merge_string_groupMethod · 0.85
_validate_msgMethod · 0.85
do_matchMethod · 0.85
_validateMethod · 0.85
do_splitter_matchMethod · 0.85
do_transformMethod · 0.85
do_splitter_matchMethod · 0.85

Calls 2

ErrClass · 0.90
CannotTransformClass · 0.85

Tested by

no test coverage detected