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
e67c92ea
Commit
e67c92ea
authored
May 26, 2016
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Plain Diff
Comment/docstring tweaks for typing.py. (Merge 3.5->3.6)
parents
b69d3fea
b22c7089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/typing.py
Lib/typing.py
+2
-1
No files found.
Lib/typing.py
View file @
e67c92ea
...
...
@@ -1579,8 +1579,9 @@ class Generator(Iterator[T_co], Generic[T_co, T_contra, V_co],
CT
=
TypeVar
(
'CT'
,
covariant
=
True
,
bound
=
type
)
# This is not a real generic class. Don't use outside annotations.
class
Type
(
type
,
Generic
[
CT
],
extra
=
type
):
"""A
generic type
usable to annotate class objects.
"""A
special construct
usable to annotate class objects.
For example, suppose we have the following classes::
...
...
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