Commit 233baf3
Explicitly type action dispatch dicts to fix PyCharm false positive
Annotate the action_methods dicts in do_light_action and
do_media_player_action as dict[str, Callable[[indigo.PluginAction,
indigo.Device, bool], None]] so type checkers don't have to
structurally unify bound methods with differing parameter names,
which was causing PyCharm to only partially resolve the callable
union and flag valid calls as passing unexpected arguments.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 7f958a6 commit 233baf3
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
937 | | - | |
| 937 | + | |
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
1422 | | - | |
| 1422 | + | |
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
| |||
0 commit comments