MCPcopy 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
13def validate_slice(obj: Any):
14 if isinstance(obj, slice):
15 raise TypeError("a slice is not a valid index for patch")
16
17
18class 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…