File tree 1 file changed +15
-8
lines changed
1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 17
17
* Wrapper submodules for re and io related types.
18
18
"""
19
19
20
- from abc import abstractmethod , abstractproperty , ABCMeta
20
+ from abc import abstractmethod , ABCMeta
21
21
import collections
22
22
import collections .abc
23
23
import contextlib
@@ -1794,11 +1794,13 @@ class IO(Generic[AnyStr]):
1794
1794
1795
1795
__slots__ = ()
1796
1796
1797
- @abstractproperty
1797
+ @property
1798
+ @abstractmethod
1798
1799
def mode (self ) -> str :
1799
1800
pass
1800
1801
1801
- @abstractproperty
1802
+ @property
1803
+ @abstractmethod
1802
1804
def name (self ) -> str :
1803
1805
pass
1804
1806
@@ -1894,23 +1896,28 @@ class TextIO(IO[str]):
1894
1896
1895
1897
__slots__ = ()
1896
1898
1897
- @abstractproperty
1899
+ @property
1900
+ @abstractmethod
1898
1901
def buffer (self ) -> BinaryIO :
1899
1902
pass
1900
1903
1901
- @abstractproperty
1904
+ @property
1905
+ @abstractmethod
1902
1906
def encoding (self ) -> str :
1903
1907
pass
1904
1908
1905
- @abstractproperty
1909
+ @property
1910
+ @abstractmethod
1906
1911
def errors (self ) -> Optional [str ]:
1907
1912
pass
1908
1913
1909
- @abstractproperty
1914
+ @property
1915
+ @abstractmethod
1910
1916
def line_buffering (self ) -> bool :
1911
1917
pass
1912
1918
1913
- @abstractproperty
1919
+ @property
1920
+ @abstractmethod
1914
1921
def newlines (self ) -> Any :
1915
1922
pass
1916
1923
You can’t perform that action at this time.
0 commit comments