Commit 04c02c8
style(forms): use X | Y unions in isinstance (UP038)
ruff v0.6.9 pinned in pre-commit-config still enforces UP038,
which my local newer ruff treats as deprecated/off-by-default,
so the rule slipped past the local sweep but tripped CI's
pre-commit job.
Python 3.10+ supports 'isinstance(x, A | B)' natively, and
'requires-python = >=3.10' so this is the canonical form
anyway.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 853ab6e commit 04c02c8
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments