On 3.12+, collections.abc.Buffer uses metaclass=ABCMeta instead of inheriting from ABC. Is there a reason why typing_extensions.Buffer doesn't do the same?
In typeshed, typing_extensions.Buffer is Protocol, which means the stubs do have metaclass=ABCMeta but they don't inherit from abc.ABC, so this MR improves alignment with both typing.Buffer and the stubs.
On 3.12+,
collections.abc.Buffer
usesmetaclass=ABCMeta
instead of inheriting fromABC
. Is there a reason whytyping_extensions.Buffer
doesn't do the same?In typeshed,
typing_extensions.Buffer
is Protocol, which means the stubs do havemetaclass=ABCMeta
but they don't inherit fromabc.ABC
, so this MR improves alignment with bothtyping.Buffer
and the stubs.