Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Oct 29, 2024
1 parent f0111ab commit 1db1141
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def warn(*args: Any, **kwargs: Any) -> Any:


if TYPE_CHECKING:
warn = _warn # noqa: F811
warn = _warn


def _frame_depth_in_module() -> int:
Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/core/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(
self.stop_propagation = stop_propagation
self.target = target

def __eq__(self, other: Any) -> bool:
def __eq__(self, other: object) -> bool:
undefined = object()
for attr in (
"function",
Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/core/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def __aenter__(self) -> Layout:

return self

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

Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def set_current(self, new: _RefValue) -> _RefValue:
self.current = new
return old

def __eq__(self, other: Any) -> bool:
def __eq__(self, other: object) -> bool:
try:
return isinstance(other, Ref) and (other.current == self.current)
except AttributeError:
Expand Down
5 changes: 4 additions & 1 deletion src/py/reactpy/tests/test_backend/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def ShowScope():
assert isinstance(scope.current, MutableMapping)


@pytest.mark.skipIf(sys.platform == "darwin", reason="Tornado and Flask backends are currently buggy on MacOS.")
@pytest.mark.skipIf(
sys.platform == "darwin",
reason="Tornado and Flask backends are currently buggy on MacOS.",
)
async def test_use_location(display: DisplayFixture):
location = reactpy.Ref()

Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/tests/test_core/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def inner_click_no_op(event):
clicked.current = True

def outer_click_is_not_triggered(event):
raise AssertionError()
raise AssertionError

outer = reactpy.html.div(
{
Expand Down

0 comments on commit 1db1141

Please sign in to comment.