diff --git a/newsfragments/4926.added.md b/newsfragments/4926.added.md new file mode 100644 index 00000000000..a81a4155358 --- /dev/null +++ b/newsfragments/4926.added.md @@ -0,0 +1,4 @@ +Introduced a new optional parameter with `#[pyclass(generic)]`. This new +parameter makes classes support generic typing at the runtime following +[PEP 560](https://peps.python.org/pep-0560/). It is an alternative +to inheriting from [typing.Generic](https://docs.python.org/3/library/typing.html#typing.Generic). \ No newline at end of file