Commit bd14dc7
fix: make X-Glean hook resilient to SDK regeneration
Use getattr() with defaults instead of direct attribute access for
exclude_deprecated_after and include_experimental config fields.
This fixes mypy errors that occur after Speakeasy regenerates
sdkconfiguration.py, which removes the custom fields added in PR #106.
The hook now gracefully handles missing attributes while still
supporting environment variables (which take precedence anyway).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0ca4291 commit bd14dc7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments