Skip to content

Commit 1db1141

Browse files
committed
Format
1 parent f0111ab commit 1db1141

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

src/py/reactpy/reactpy/_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def warn(*args: Any, **kwargs: Any) -> Any:
1313

1414

1515
if TYPE_CHECKING:
16-
warn = _warn # noqa: F811
16+
warn = _warn
1717

1818

1919
def _frame_depth_in_module() -> int:

src/py/reactpy/reactpy/core/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(
109109
self.stop_propagation = stop_propagation
110110
self.target = target
111111

112-
def __eq__(self, other: Any) -> bool:
112+
def __eq__(self, other: object) -> bool:
113113
undefined = object()
114114
for attr in (
115115
"function",

src/py/reactpy/reactpy/core/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async def __aenter__(self) -> Layout:
8989

9090
return self
9191

92-
async def __aexit__(self, *exc: Any) -> None:
92+
async def __aexit__(self, *exc: object) -> None:
9393
root_csid = self._root_life_cycle_state_id
9494
root_model_state = self._model_states_by_life_cycle_state_id[root_csid]
9595

src/py/reactpy/reactpy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def set_current(self, new: _RefValue) -> _RefValue:
4343
self.current = new
4444
return old
4545

46-
def __eq__(self, other: Any) -> bool:
46+
def __eq__(self, other: object) -> bool:
4747
try:
4848
return isinstance(other, Ref) and (other.current == self.current)
4949
except AttributeError:

src/py/reactpy/tests/test_backend/test_all.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def ShowScope():
107107
assert isinstance(scope.current, MutableMapping)
108108

109109

110-
@pytest.mark.skipIf(sys.platform == "darwin", reason="Tornado and Flask backends are currently buggy on MacOS.")
110+
@pytest.mark.skipIf(
111+
sys.platform == "darwin",
112+
reason="Tornado and Flask backends are currently buggy on MacOS.",
113+
)
111114
async def test_use_location(display: DisplayFixture):
112115
location = reactpy.Ref()
113116

src/py/reactpy/tests/test_core/test_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def inner_click_no_op(event):
193193
clicked.current = True
194194

195195
def outer_click_is_not_triggered(event):
196-
raise AssertionError()
196+
raise AssertionError
197197

198198
outer = reactpy.html.div(
199199
{

0 commit comments

Comments
 (0)