Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix noqas #1016

Merged
merged 1 commit into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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