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
8252c52e
Commit
8252c52e
authored
Oct 08, 2019
by
Serhiy Storchaka
Committed by
GitHub
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38407: Add docstrings for typing.SupportsXXX classes. (GH-16644)
parent
13abda41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/typing.py
Lib/typing.py
+7
-0
No files found.
Lib/typing.py
View file @
8252c52e
...
...
@@ -1513,6 +1513,7 @@ Type.__doc__ = \
@
runtime_checkable
class
SupportsInt
(
Protocol
):
"""An ABC with one abstract method __int__."""
__slots__
=
()
@
abstractmethod
...
...
@@ -1522,6 +1523,7 @@ class SupportsInt(Protocol):
@
runtime_checkable
class
SupportsFloat
(
Protocol
):
"""An ABC with one abstract method __float__."""
__slots__
=
()
@
abstractmethod
...
...
@@ -1531,6 +1533,7 @@ class SupportsFloat(Protocol):
@
runtime_checkable
class
SupportsComplex
(
Protocol
):
"""An ABC with one abstract method __complex__."""
__slots__
=
()
@
abstractmethod
...
...
@@ -1540,6 +1543,7 @@ class SupportsComplex(Protocol):
@
runtime_checkable
class
SupportsBytes
(
Protocol
):
"""An ABC with one abstract method __bytes__."""
__slots__
=
()
@
abstractmethod
...
...
@@ -1549,6 +1553,7 @@ class SupportsBytes(Protocol):
@
runtime_checkable
class
SupportsIndex
(
Protocol
):
"""An ABC with one abstract method __index__."""
__slots__
=
()
@
abstractmethod
...
...
@@ -1558,6 +1563,7 @@ class SupportsIndex(Protocol):
@
runtime_checkable
class
SupportsAbs
(
Protocol
[
T_co
]):
"""An ABC with one abstract method __abs__ that is covariant in its return type."""
__slots__
=
()
@
abstractmethod
...
...
@@ -1567,6 +1573,7 @@ class SupportsAbs(Protocol[T_co]):
@
runtime_checkable
class
SupportsRound
(
Protocol
[
T_co
]):
"""An ABC with one abstract method __round__ that is covariant in its return type."""
__slots__
=
()
@
abstractmethod
...
...
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