Commit c8ed377
fix: make typing_extensions a conditional runtime dep for Py 3.10
`src/workos/_types.py` imports `Self`, which landed in stdlib `typing`
only in Python 3.11. Use a `sys.version_info` conditional so 3.11+ uses
stdlib and 3.10 falls back to `typing_extensions`, matching the SDK's
`requires-python = '>=3.10'`.
Mark `typing_extensions~=4.0` as `python_version < '3.11'` in the
dependency list so pip/uv only install it on 3.10 — 3.11+ users don't
pay the transitive-dep cost. Drop the now-unconditional typing_extensions
check from the smoke test (the conditional import is exercised whenever
workos itself is imported).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7ab455f commit c8ed377
File tree
4 files changed
+10
-9
lines changed- src/workos
- tests
4 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | 208 | | |
210 | | - | |
211 | | - | |
212 | | - | |
| 209 | + | |
213 | 210 | | |
214 | 211 | | |
215 | 212 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments