Skip to content

Commit

Permalink
fix noqas (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea authored Jun 7, 2023
1 parent 09679e2 commit 9552441
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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 # noqa: F811


def _frame_depth_in_module() -> int:
Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/backend/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def serve_development_app(

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

if _DEFAULT_IMPLEMENTATION is not None:
return _DEFAULT_IMPLEMENTATION
Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/tests/test_core/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def wrapper(*args, **kwargs):
@reactpy.component
@add_to_live_hooks
def Outer():
nonlocal set_inner_component # noqa PLE0117
nonlocal set_inner_component
inner_component, set_inner_component = reactpy.hooks.use_state(
Inner(key="first")
)
Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_basic_ref_behavior():

r = reactpy.Ref()
with pytest.raises(AttributeError):
r.current # noqa B018
r.current # noqa: B018

r.current = 4
assert r.current == 4
Expand Down

0 comments on commit 9552441

Please sign in to comment.