Skip to content

Commit 032ab5d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enum-only-meta
2 parents 1e404fa + a6ddd45 commit 032ab5d

File tree

115 files changed

+7728
-1364
lines changed

Some content is hidden

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

115 files changed

+7728
-1364
lines changed

CONTRIBUTING.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ For every pull request, we aim to promptly either merge it or say why
8080
it's not yet ready; if you go a few days without a reply, please feel
8181
free to ping the thread by adding a new comment.
8282

83-
At present the core developers are (alphabetically):
84-
* David Fisher (@ddfisher)
85-
* Jukka Lehtosalo (@JukkaL)
86-
* Greg Price (@gnprice)
87-
* Guido van Rossum (@gvanrossum)
83+
For a list of mypy core developers, see the file [CREDITS](CREDITS).
8884

8985

9086
Preparing Changes
@@ -109,6 +105,9 @@ which consist mainly of a reference to
109105
[PEP 8](https://www.python.org/dev/peps/pep-0008/) -- for the code you
110106
put in the pull request.
111107

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

CREDITS

+8-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ https://github.com/python/mypy/commits/master
77
For lists of contributors per mypy release (including typeshed) see
88
the release blog posts at https://mypy-lang.blogspot.com/.
99

10-
Mypy team:
10+
Dropbox core team:
1111

1212
Jukka Lehtosalo <[email protected]>
1313
Guido van Rossum <[email protected]>
14+
Ivan Levkivskyi <[email protected]>
15+
Michael J. Sullivan <[email protected]>
16+
17+
Non-Dropbox core team members:
18+
19+
Ethan Smith
20+
Jelle Zijlstra
1421

1522
Past Dropbox core team members:
1623

@@ -21,12 +28,6 @@ Past Dropbox core team members:
2128
Michael Lee
2229
Reid Barton
2330

24-
Non-Dropbox core team members:
25-
26-
Ivan Levkivskyi
27-
Ethan Smith
28-
Jelle Zijlstra
29-
3031
Additional thanks to:
3132

3233
Alex Allain

ISSUE_TEMPLATE.md

+20
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

+1-1
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/config_file.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ The following global flags may only be set in the global section
7474
- ``warn_redundant_casts`` (Boolean, default False) warns about
7575
casting an expression to its inferred type.
7676

77-
- ``warn_unused_ignores`` (Boolean, default False) warns about
78-
unneeded ``# type: ignore`` comments.
79-
8077
- ``warn_unused_configs`` (Boolean, default False) warns about
8178
per-module sections in the config file that didn't match any
8279
files processed in the current run.
@@ -203,6 +200,9 @@ overridden by the pattern sections matching the module name.
203200
returning a value with type ``Any`` from a function declared with a
204201
non- ``Any`` return type.
205202

203+
- ``warn_unused_ignores`` (Boolean, default False) warns about
204+
unneeded ``# type: ignore`` comments.
205+
206206
- ``strict_boolean`` (Boolean, default False) makes using non-boolean
207207
expressions in conditions an error.
208208

docs/source/faq.rst

-10
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,6 @@ features will be supported in a restricted form (for example, runtime
167167
modification is only supported for classes or methods registered as
168168
dynamic or 'patchable').
169169

170-
How is mypy different from PyPy?
171-
********************************
172-
173-
*This answer relates to PyPy as a Python implementation. See also the answer related to RPython below.*
174-
175-
Mypy and PyPy are orthogonal. Mypy does static type checking, i.e. it
176-
is basically a linter, but static typing has no runtime effect,
177-
whereas the PyPy is an Python implementation. You can use PyPy to run
178-
mypy programs.
179-
180170
How is mypy different from Cython?
181171
**********************************
182172

docs/source/generics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Variance of generic types
307307

308308
There are three main kinds of generic types with respect to subtype
309309
relations between them: invariant, covariant, and contravariant.
310-
Assuming that we have a pair of types types ``A`` and ``B`` and ``B`` is
310+
Assuming that we have a pair of types ``A`` and ``B``, and ``B`` is
311311
a subtype of ``A``, these are defined as follows:
312312

313313
* A generic class ``MyCovGen[T, ...]`` is called covariant in type variable

0 commit comments

Comments
 (0)