Python types are subclassable by default, and use the @typing.final decorator to hint that they should not be subclassed.
We currently use #[pyclass(subclass)] to enable subclassing.
I wonder if we should instead move to #[pyclass(final)] to opt-out of subclassing, to match Python?
Python types are subclassable by default, and use the
@typing.finaldecorator to hint that they should not be subclassed.We currently use
#[pyclass(subclass)]to enable subclassing.I wonder if we should instead move to
#[pyclass(final)]to opt-out of subclassing, to match Python?