Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 5c436f0

Browse files
committed
fix error
1 parent 8f68cca commit 5c436f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/hook_usage_test_cases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,6 @@ def impropper_usage_of_effect_as_decorator():
197197

198198
use_effect(
199199
lambda: None,
200-
# error: ROH202 dependency args of 'use_effect' should be a literal list or tuple - not expression type 'ListComp'
201-
[i for i in range(3)],
200+
# error: ROH202 dependency args of 'use_effect' should be a literal list or tuple - not expression type 'Name'
201+
not_a_list_or_tuple,
202202
)

0 commit comments

Comments
 (0)