Commit 782f6a9
chore(cuda.core): collapse nested if in Location.__post_init__ (SIM102)
ruff SIM102 flagged the host/host_numa_current branch:
elif self.kind in ("host", "host_numa_current"):
if self.id is not None:
raise ValueError(...)
into a single condition with `and`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3176271 commit 782f6a9
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
0 commit comments