Commit cc786bb
committed
fix(types,client): use tuple syntax in isinstance, remove no-op proto import
- _types.py: replace isinstance(v, int | float) and isinstance(py_val, list | tuple)
with tuple-of-types form (int, float) and (list, tuple); identical semantics on
all Python versions, eliminates repeated Copilot false-positive lint hits
- client.py: remove no-op 'from coordinode._proto import __init__ as _setup_path'
(_proto/__init__.py has no sys.path side effects; import served no purpose)1 parent a704de5 commit cc786bb
2 files changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
0 commit comments