Commit 9cdefd9
Fix docs build by guarding Self import behind version check
typing_extensions is only a dependency for Python < 3.11, but the
unconditional import caused ModuleNotFoundError on ReadTheDocs (Python
3.12). Use typing.Self from stdlib on 3.11+ and fall back to
typing_extensions on older versions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 551023c commit 9cdefd9
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments