Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/plotly/dash
/ validate_slice
Function
validate_slice
dash/_patch.py:13–15 ·
view source on GitHub ↗
(obj: Any)
Source
from the content-addressed store, hash-verified
11
12
13
def
validate_slice(obj: Any):
14
if
isinstance(obj, slice):
15
raise
TypeError(
"a slice is not a valid index for patch"
)
16
17
18
class
Patch:
Callers
3
__getitem__
Method · 0.85
__setitem__
Method · 0.85
__delitem__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…