Skip to content

[DEV]: v2.9.0 - Python3.14 compat & new features#61

Merged
MatrixEditor merged 13 commits into
masterfrom
feat/py314-compat
Jul 4, 2026
Merged

[DEV]: v2.9.0 - Python3.14 compat & new features#61
MatrixEditor merged 13 commits into
masterfrom
feat/py314-compat

Conversation

@MatrixEditor

@MatrixEditor MatrixEditor commented Jul 4, 2026

Copy link
Copy Markdown
Owner

What is planned for this pull request:

  • Add Python 3.14-compatible conditional metadata support.
  • Add generic TypeVar templates
  • Add inline anonymous unions with named raw field support. (deferred)
  • Add padding wrappers,
  • fix C/Python interop
  • Add more tests and (finally) some benchmarks

Details

  • Python generic templates based on normal typing.TypeVar and Generic classes. Templates now support direct Template[uint8] specialization, partial specialization, specialization caching, and runtime __origin__ / __args__ metadata; e.g.
  T = TypeVar("T")

  @template
  class Box(Generic[T]):
      value: T

  ByteBox = Box[uint8_t] # type checkers will love this

---

- Python generic templates based on normal `typing.TypeVar` and `Generic`
  classes. Templates now support direct `Template[uint8]` specialization,
  partial specialization, specialization caching, and runtime `__origin__` /
  `__args__` metadata.
@MatrixEditor MatrixEditor merged commit d62c2df into master Jul 4, 2026
13 checks passed
@MatrixEditor MatrixEditor deleted the feat/py314-compat branch July 4, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant