Skip to content

Commit 577b893

Browse files
committed
Use metaclass instead of deriving from ABC
1 parent b1593fa commit 577b893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class TextIOBase(_io._TextIOBase, IOBase):
104104
#
105105

106106

107-
class Reader[T](abc.ABC):
107+
class Reader[T](metaclass=abc.ABCMeta):
108108
"""Protocol for simple I/O reader instances.
109109
110110
This protocol only supports blocking I/O.
@@ -128,7 +128,7 @@ def __subclasshook__(cls, C):
128128
return NotImplemented
129129

130130

131-
class Writer[T](abc.ABC):
131+
class Writer[T](metaclass=abc.ABCMeta):
132132
"""Protocol for simple I/O writer instances.
133133
134134
This protocol only supports blocking I/O.

0 commit comments

Comments
 (0)