Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6ce03ec6
Commit
6ce03ec6
authored
Sep 27, 2019
by
HongWeipeng
Committed by
Ivan Levkivskyi
Sep 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup ababstractproperty in typing.py (GH-16432)
parent
0bcbfa43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
Lib/typing.py
Lib/typing.py
+15
-8
No files found.
Lib/typing.py
View file @
6ce03ec6
...
...
@@ -17,7 +17,7 @@ At large scale, the structure of the module is following:
* 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
...
...
@@ -1794,11 +1794,13 @@ class IO(Generic[AnyStr]):
__slots__
=
()
@
abstractproperty
@
property
@
abstractmethod
def
mode
(
self
)
->
str
:
pass
@
abstractproperty
@
property
@
abstractmethod
def
name
(
self
)
->
str
:
pass
...
...
@@ -1894,23 +1896,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment