Skip to content

Commit 6816839

Browse files
committed
Merge remote-tracking branch 'upstream/master' into cleanup-reverseop
2 parents c51f1c7 + b993693 commit 6816839

File tree

152 files changed

+10639
-2780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+10639
-2780
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ docs/build/
1313
.incremental_checker_cache.json
1414
.cache
1515
.runtest_log.json
16+
dmypy.json
1617

1718
# Packages
1819
*.egg
@@ -23,7 +24,7 @@ docs/build/
2324
*.swp
2425

2526
# Operating Systems
26-
.DS_store
27+
.DS_Store
2728

2829
# Coverage Files
2930
htmlcov

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ other people with respect and more generally to follow the guidelines
4747
articulated in the [Python Community Code of
4848
Conduct](https://www.python.org/psf/codeofconduct/).
4949

50+
First Time Contributors
51+
-----------------------
52+
53+
Mypy appreciates your contribution! If you are interested in helping improve
54+
mypy, there are several ways to get started:
55+
56+
* Contributing to [typeshed](https://github.com/python/typeshed/issues) is a great way to
57+
become familiar with Python's type syntax.
58+
* Work on [documentation issues](https://github.com/python/mypy/labels/documentation).
59+
* Ask on [the chat](https://gitter.im/python/typing) or on
60+
[the issue tracker](https://github.com/python/mypy/issues) about good beginner issues.
5061

5162
Submitting Changes
5263
------------------
@@ -98,6 +109,9 @@ which consist mainly of a reference to
98109
[PEP 8](https://www.python.org/dev/peps/pep-0008/) -- for the code you
99110
put in the pull request.
100111

112+
Also, do not squash your commits after you have submitted a pull request, as this
113+
erases context during review. We will squash commits when the pull request is merged.
114+
101115
You may also find other pages in the
102116
[Mypy developer guide](https://github.com/python/mypy/wiki/Developer-Guides)
103117
helpful in developing your change.

CREDITS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Mypy team:
1111

1212
Jukka Lehtosalo <[email protected]>
1313
Guido van Rossum <[email protected]>
14+
Ivan Levkivskyi
15+
Michael J. Sullivan
1416

1517
Past Dropbox core team members:
1618

@@ -23,7 +25,6 @@ Past Dropbox core team members:
2325

2426
Non-Dropbox core team members:
2527

26-
Ivan Levkivskyi
2728
Ethan Smith
2829
Jelle Zijlstra
2930

ISSUE_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Note: if you are reporting a wrong signature of a function or a class in
2+
the standard library, then the typeshed tracker is better suited
3+
for this report: https://github.com/python/typeshed/issues
4+
5+
Please provide more information to help us understand the issue:
6+
7+
* Are you reporting a bug, or opening a feature request?
8+
* Please insert below the code you are checking with mypy,
9+
or a mock-up repro if the source is private. We would appreciate
10+
if you try to simplify your case to a minimal repro.
11+
* What is the actual behavior/output?
12+
* What is the behavior/output you expect?
13+
* What are the versions of mypy and Python you are using?
14+
Do you see the same issue after installing mypy from Git master?
15+
* What are the mypy flags you are using? (For example --strict-optional)
16+
* If mypy crashed with a traceback, please paste
17+
the full traceback below.
18+
19+
(You can freely edit this text, please remove all the lines
20+
you believe are unnecessary.)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sure you've found a bug please search our issue trackers for a
1414
duplicate before filing a new issue:
1515

1616
- [mypy tracker](https://github.com/python/mypy/issues)
17-
for mypy isues
17+
for mypy issues
1818
- [typeshed tracker](https://github.com/python/typeshed/issues)
1919
for issues with specific modules
2020
- [typing tracker](https://github.com/python/typing/issues)

docs/source/builtin_types.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Type Description
1313
``bytes`` 8-bit string
1414
``object`` an arbitrary object (``object`` is the common base class)
1515
``List[str]`` list of ``str`` objects
16+
``Tuple[int, int]`` tuple of two ``int`` objects (``Tuple[()]`` is the empty tuple)
17+
``Tuple[int, ...]`` tuple of an arbitrary number of ``int`` objects
1618
``Dict[str, int]`` dictionary from ``str`` keys to ``int`` values
1719
``Iterable[int]`` iterable object containing ints
1820
``Sequence[bool]`` sequence of booleans

docs/source/cheat_sheet.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Built-in types
3333
x = [1] # type: List[int]
3434
x = set([6, 7]) # type: Set[int]
3535
36+
# Empty Tuple types are a bit special
37+
x = () # type: Tuple[()]
38+
3639
# For mappings, we need the types of both keys and values.
3740
x = dict(field=2.0) # type: Dict[str, float]
3841

docs/source/cheat_sheet_py3.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Built-in types
3434
x = [1] # type: List[int]
3535
x = {6, 7} # type: Set[int]
3636
37+
# Empty Tuple types are a bit special
38+
x = () # type: Tuple[()]
39+
3740
# For mappings, we need the types of both keys and values.
3841
x = {'field': 2.0} # type: Dict[str, float]
3942

0 commit comments

Comments
 (0)