Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/reactive-python/reactpy
/ class_equals
Function
class_equals
src/py/reactpy/tests/tooling/select.py:16–20 ·
view source on GitHub ↗
(class_name: str)
Source
from the content-addressed store, hash-verified
14
15
16
def
class_equals(class_name: str) -> Selector:
17
return
(
18
lambda
element, _: class_name
19
in element.get(
"attributes"
, {}).get(
"class"
,
""
).split()
20
)
21
22
23
def
text_equals(text: str) -> Selector:
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected