Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.8] bpo-38290: cleanup ababstractproperty in typing.py (GH-16432) #16433

Merged
merged 1 commit into from
Sep 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 15 additions & 8 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Wrapper submodules for re and io related types.
"""

from abc import abstractmethod, abstractproperty, ABCMeta
from abc import abstractmethod, ABCMeta
import collections
import collections.abc
import contextlib
Expand Down Expand Up @@ -1823,11 +1823,13 @@ class IO(Generic[AnyStr]):

__slots__ = ()

@abstractproperty
@property
@abstractmethod
def mode(self) -> str:
pass

@abstractproperty
@property
@abstractmethod
def name(self) -> str:
pass

Expand Down Expand Up @@ -1923,23 +1925,28 @@ class TextIO(IO[str]):

__slots__ = ()

@abstractproperty
@property
@abstractmethod
def buffer(self) -> BinaryIO:
pass

@abstractproperty
@property
@abstractmethod
def encoding(self) -> str:
pass

@abstractproperty
@property
@abstractmethod
def errors(self) -> Optional[str]:
pass

@abstractproperty
@property
@abstractmethod
def line_buffering(self) -> bool:
pass

@abstractproperty
@property
@abstractmethod
def newlines(self) -> Any:
pass

Expand Down