fix noqas (#1016)
This commit is contained in:
parent
09679e2d0d
commit
95524415d7
4 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue