Commit 537c10e
Fix Python 3.14 compatibility (PEP 649)
Python 3.14 implements PEP 649 (Deferred Evaluation of Annotations),
which changes how annotations are stored. Annotations are no longer
in clsdict["__annotations__"] during metaclass __init__, but are
available on cls.__annotations__ after class creation.
Update StructMeta to use cls.__annotations__ instead, which works
across all Python versions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent abaef67 commit 537c10e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments