Skip to content

Commit 9552441

Browse files
authored
fix noqas (#1016)
1 parent 09679e2 commit 9552441

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: src/py/reactpy/reactpy/_warnings.py

+1-1
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 # noqa: F811
1717

1818

1919
def _frame_depth_in_module() -> int:

Diff for: src/py/reactpy/reactpy/backend/default.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def serve_development_app(
5050

5151
def _default_implementation() -> BackendImplementation[Any]:
5252
"""Get the first available server implementation"""
53-
global _DEFAULT_IMPLEMENTATION # noqa PLW0603
53+
global _DEFAULT_IMPLEMENTATION # noqa: PLW0603
5454

5555
if _DEFAULT_IMPLEMENTATION is not None:
5656
return _DEFAULT_IMPLEMENTATION

Diff for: src/py/reactpy/tests/test_core/test_layout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def wrapper(*args, **kwargs):
384384
@reactpy.component
385385
@add_to_live_hooks
386386
def Outer():
387-
nonlocal set_inner_component # noqa PLE0117
387+
nonlocal set_inner_component
388388
inner_component, set_inner_component = reactpy.hooks.use_state(
389389
Inner(key="first")
390390
)

Diff for: src/py/reactpy/tests/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_basic_ref_behavior():
2424

2525
r = reactpy.Ref()
2626
with pytest.raises(AttributeError):
27-
r.current # noqa B018
27+
r.current # noqa: B018
2828

2929
r.current = 4
3030
assert r.current == 4

0 commit comments

Comments
 (0)