Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/psf/black
/ fstring_contains_expr
Function
fstring_contains_expr
src/black/trans.py:1378–1379 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
1376
1377
1378
def
fstring_contains_expr(s: str) -> bool:
1379
return
any(iter_fexpr_spans(s))
1380
1381
1382
def
_toggle_fexpr_quotes(fstring: str, old_quote: str) -> str:
Callers
2
do_transform
Method · 0.85
_normalize_f_string
Method · 0.85
Calls
1
iter_fexpr_spans
Function · 0.85
Tested by
no test coverage detected