Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ assert_never
Function
assert_never
src/_pytest/compat.py:286–287 ·
view source on GitHub ↗
(value: NoReturn)
Source
from the content-addressed store, hash-verified
284
else
:
285
286
def
assert_never(value: NoReturn) -> NoReturn:
287
assert False, f
"Unhandled value: {value} ({type(value).__name__})"
288
289
290
class
CallableBool:
Callers
11
import_path
Function · 0.90
get_scope_node
Function · 0.90
get_param_argkeys
Function · 0.90
addSubTest
Method · 0.90
_compare_eq_text
Function · 0.90
_getini
Method · 0.90
test_gitignore
Function · 0.90
test_assert_never_union
Function · 0.90
test_assert_never_enum
Function · 0.90
test_assert_never_literal
Function · 0.90
_get_pygments_lexer
Method · 0.85
Calls
no outgoing calls
Tested by
5
addSubTest
Method · 0.72
test_gitignore
Function · 0.72
test_assert_never_union
Function · 0.72
test_assert_never_enum
Function · 0.72
test_assert_never_literal
Function · 0.72