Skip to content

Commit eb48779

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pr/1210
2 parents a9ba5db + f81c168 commit eb48779

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

.github/workflows/.hatch-run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v2
4242
- uses: actions/setup-node@v2
4343
with:
44-
node-version: "14.x"
44+
node-version: "23.x"
4545
registry-url: ${{ inputs.node-registry-url }}
4646
- name: Pin NPM Version
4747
run: npm install -g [email protected]

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ detached = true
1212
dependencies = [
1313
"invoke",
1414
# lint
15-
"black==24.1.1", # Pin lint tools we don't control to avoid breaking changes
16-
"ruff==0.0.278", # Pin lint tools we don't control to avoid breaking changes
15+
"black==24.1.1", # Pin lint tools we don't control to avoid breaking changes
16+
"ruff==0.0.278", # Pin lint tools we don't control to avoid breaking changes
1717
"toml",
18-
"flake8==7.0.0", # Pin lint tools we don't control to avoid breaking changes
18+
"flake8==7.0.0", # Pin lint tools we don't control to avoid breaking changes
1919
"flake8-pyproject",
20-
"reactpy-flake8 >=0.7",
2120
# types
2221
"mypy",
2322
"types-toml",

src/py/reactpy/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ REACTPY_DEBUG_MODE = "1"
9292
[tool.hatch.envs.lint]
9393
features = ["all"]
9494
dependencies = [
95-
"mypy>=1.0.0",
95+
"mypy==1.8",
9696
"types-click",
9797
"types-tornado",
98-
"types-pkg-resources",
9998
"types-flask",
10099
"types-requests",
101100
]

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from collections.abc import MutableMapping
23

34
import pytest
@@ -106,6 +107,10 @@ def ShowScope():
106107
assert isinstance(scope.current, MutableMapping)
107108

108109

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

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)