Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/psf/black
/ is_empty_par
Function
is_empty_par
src/black/nodes.py:903–904 ·
view source on GitHub ↗
(leaf: Leaf)
Source
from the content-addressed store, hash-verified
901
902
903
def
is_empty_par(leaf: Leaf) -> bool:
904
return
is_empty_lpar(leaf) or is_empty_rpar(leaf)
905
906
907
def
is_empty_lpar(leaf: Leaf) -> bool:
Callers
6
_return_match
Method · 0.90
_else_match
Method · 0.90
_assert_match
Method · 0.90
_assign_match
Method · 0.90
_dict_or_lambda_match
Method · 0.90
_next_state
Method · 0.90
Calls
2
is_empty_lpar
Function · 0.85
is_empty_rpar
Function · 0.85
Tested by
no test coverage detected