Commit 6033b93
chore: switch type checker from mypy to pyright strict
Replace mypy with pyright as the primary type checker. pyright is
faster, catches more real bugs (better type narrowing, generic
inference, union handling), and is the industry standard for production
Python SDKs (used by OpenAI, Anthropic, Stripe).
- Replace mypy with pyright in noxfile.py (typecheck + ci sessions)
- Swap mypy for pyright in type_check dependency group
- Remove [tool.mypy] config section
- Add [tool.pyright] with typeCheckingMode = "strict"
- Update uv.lock
The generated SDK passes pyright strict with 0 errors across 374 files.
This also addresses #600 (SsoProviderType enum removal) — the emitter
generates all spec enums as str/Enum classes, restoring attribute
access (e.g., EnumName.VALUE) that was lost when v5 switched to
Literal type aliases.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e24084e commit 6033b93
3 files changed
+30
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 44 | | |
56 | 45 | | |
57 | 46 | | |
| |||
62 | 51 | | |
63 | 52 | | |
64 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments