This commit is contained in:
Ryan Morshead 2023-06-06 23:25:24 -06:00 committed by GitHub
parent 09679e2d0d
commit 95524415d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -50,7 +50,7 @@ _DEFAULT_IMPLEMENTATION: BackendImplementation[Any] | None = None
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

View file

@ -384,7 +384,7 @@ async def test_life_cycle_hooks_are_garbage_collected():
@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")
)

View file

@ -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