
* upgrade to latest ruff * try to fix dep review * try to fix dep review (2) * upgrade black * upgrade black (2) * update allowed dependencies * update allowed dependencies (2) * update allowed dependencies (3) * wait between interim and final in yield test * remove previous commit, increase delay between yield * forgot to save on the time.sleep(1) removal * fix integration (maybe?) * fix pyi? * what even is going on * what is realityi? * test another fix for app harness * try to wait even longer? * force uvloop to be optional * downpin fastapi < 0.111, remove changes to test
19 lines
493 B
Python
19 lines
493 B
Python
"""Base class definition for raw HTML elements."""
|
|
|
|
from reflex.components.component import Component
|
|
|
|
|
|
class Element(Component):
|
|
"""The base class for all raw HTML elements."""
|
|
|
|
def __eq__(self, other):
|
|
"""Two elements are equal if they have the same tag.
|
|
|
|
Args:
|
|
other: The other element.
|
|
|
|
Returns:
|
|
True if the elements have the same tag, False otherwise.
|
|
"""
|
|
return isinstance(other, Element) and self.tag == other.tag
|