Skip to content

Commit 1b1dee4

Browse files
committed
match Buffer inheritance to cpython Buffer
1 parent e391124 commit 1b1dee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typing_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ class Employee(NamedTuple):
34043404
if hasattr(collections.abc, "Buffer"):
34053405
Buffer = collections.abc.Buffer
34063406
else:
3407-
class Buffer(abc.ABC): # noqa: B024
3407+
class Buffer(metaclass=abc.ABCMeta): # noqa: B024
34083408
"""Base class for classes that implement the buffer protocol.
34093409
34103410
The buffer protocol allows Python objects to expose a low-level

0 commit comments

Comments
 (0)