8000 [conflict] Fix #1855: Multiassign from Union by elazarg · Pull Request #2154 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

[conflict] Fix #1855: Multiassign from Union #2154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 54 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
7e043d0
handle union, add test
elazarg Sep 18, 2016
9a50d73
kill blank
elazarg Sep 18, 2016
5c4d86e
more tests
elazarg Sep 18, 2016
60cfbbb
handle binding
elazarg Sep 19, 2016
5e9e0f2
try to minimize visual difference
elazarg Sep 19, 2016
71f8475
(cont.)
elazarg Sep 19, 2016
42b6e73
add tests
elazarg Sep 21, 2016
0560bd8
no binder yet
elazarg Sep 23, 2016
7683ee2
Sync typeshed
Sep 23, 2016
8f0316f
Docs: Replace "if False" trick with "if TYPE_CHECKING". (#2181)
davidfstr Sep 25, 2016
fde83d5
Add column number support (#2163)
bavardage Sep 25, 2016
2fbf387
Fix #2070 - bytes formatting incorrect in python 3 (#2168)
buckbaskin Sep 26, 2016
da3a516
Support rebinding on multiassignment from union
elazarg Sep 27, 2016
ab60317
Merge remote-tracking branch 'upstream/master' into multiassign_union
elazarg Sep 27, 2016
6bb5519
more tests
elazarg Sep 27, 2016
0d2c594
Bare `Tuple` should mean `Tuple[Any, ...]`. (#2185)
gvanrossum Sep 27, 2016
2c73db5
Add --recursive and --ignore-errors flags to stubgen (#2183)
rtpg Sep 27, 2016
d2c6e8b
Fix lint
Sep 27, 2016
5c03ac9
M 8000 ake runtests.py output less verbose
Sep 27, 2016
c3e1b35
Small module name translation fix for fast parser (#2187)
ddfisher Sep 27, 2016
87f7d90
Fix overzealous new submodule check (#2189)
Michael0x2a Sep 28, 2016
c752b42
Sync typeshed
Sep 28, 2016
5f0d02c
Implement PEP 526 Variable Annotations Syntax (#2131)
ilevkivskyi Sep 28, 2016
bec9454
Fix a fixup bug for nested class references.
Sep 28, 2016
a9fac0b
Add gitter chat room
gvanrossum Sep 29, 2016
ea23ac0
Rename --suppress-error-context to --hide-error-context (#2192)
gvanrossum Sep 29, 2016
4a34623
Add gitter badge for the new chat room (#2202)
gvanrossum Sep 30, 2016
2db6a11
Don't crash in fast parser on complex numbers in Python 2 mode
Oct 1, 2016
6151d20
Add more precise types to fastparse{,2}.py (#2204)
elazarg Oct 1, 2016
4a457fc
Tighter types for binder, checker and checkexpr (#2205)
elazarg Oct 1, 2016
c8a9b52
Tighten types for semanal (#2207)
elazarg Oct 2, 2016
af0b24a
Tighten types for parse.py and some more (#2208)
elazarg Oct 2, 2016
d5c5c02
Make Expression and Statement separable (#2209)
elazarg Oct 3, 2016
640921b
Make Expression, Statement true subclasses of Node. See #1783.
Oct 3, 2016
20aea69
Add mypy.ini. Fix strict none errors in the test subpackage. (#2200)
gvanrossum Oct 3, 2016
a3b6546
Sync typeshed
Oct 3, 2016
91a2275
Document support for Python 3.6 features.
Oct 3, 2016
bc4a390
Document --show-column-numbers and --scripts-are-modules
Oct 3, 2016
2e6cb95
Shorten "inherently stale" log message if all nodes in scc are stale
Oct 3, 2016
d6a7069
Fix lint error
Oct 3, 2016
eb16d1d
Remove weird implementation of --show_traceback and --pdb. (#2216)
gvanrossum Oct 4, 2016
dd71ddc
RIP weak mode. (#2217)
gvanrossum Oct 4, 2016
38651c4
handle union, add test
elazarg Sep 18, 2016
9000099
kill blank
elazarg Sep 18, 2016
f20f3d6
more tests
elazarg Sep 18, 2016
61be4e9
handle binding
elazarg Sep 19, 2016
9830cb4
try to minimize visual difference
elazarg Sep 19, 2016
59dc8b7
(cont.)
elazarg Sep 19, 2016
7f304e4
add tests
elazarg Sep 21, 2016
ff1ca80
no binder yet
elazarg Sep 23, 2016
168087e
Support rebinding on multiassignment from union
elazarg Sep 27, 2016
3f198cf
more tests
elazarg Sep 27, 2016
4fa059f
Rebase
elazarg Oct 5, 2016
ab35a4c
Merge
elazarg Oct 5, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Document --show-column-numbers and --scripts-are-modules
  • Loading branch information
Guido van Rossum committed Oct 3, 2016
commit bc4a39005ab23f66e20f8f17947aea67a259983c
38 changes: 28 additions & 10 deletions docs/source/command_line.rst
< 84E7 /tr>
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ summary of command line flags can always be printed using the ``-h``
flag (or its long form ``--help``)::

$ mypy -h
usage: mypy [-h] [-v] [-V] [--python-version x.y] [--platform PLATFORM]
[-2] [-s] [--almost-silent] [--disallow-untyped-calls]
usage: mypy [-h] [-v] [-V] [--python-version x.y] [--platform PLATFORM] [-2]
[-s] [--almost-silent] [--disallow-untyped-calls]
[--disallow-untyped-defs] [--check-untyped-defs]
[--disallow-subclassing-any] [--warn-incomplete-stub]
[--warn-redundant-casts] [--warn-unused-ignores]
[--hide-error-context] [--fast-parser] [-i]
[--cache-dir DIR] [--strict-optional]
[--hide-error-context] [--fast-parser] [-i] [--cache-dir DIR]
[--strict-optional]
[--strict-optional-whitelist [GLOB [GLOB ...]]] [--pdb]
[--show-traceback] [--stats] [--inferstats]
[--custom-typing MODULE] [--scripts-are-modules]
[--config-file CONFIG_FILE] [--linecount-report DIR]
[--linecoverage-report DIR] [--old-html-report DIR]
[--memory-xml-report DIR] [--xml-report DIR]
[--xslt-html-report DIR] [--xslt-txt-report DIR]
[--html-report DIR] [--txt-report DIR] [-m MODULE]
[-c PROGRAM_TEXT] [-p PACKAGE]
[--config-file CONFIG_FILE] [--show-column-numbers]
[--linecount-report DIR] [--linecoverage-report DIR]
[--old-html-report DIR] [--memory-xml-report DIR]
[--xml-report DIR] [--xslt-html-report DIR]
[--xslt-txt-report DIR] [--html-report DIR] [--txt-report DIR]
[-m MODULE] [-c PROGRAM_TEXT] [-p PACKAGE]
[files [files ...]]

(etc., too long to show everything here)

Specifying files and directories to be checked
Expand Down Expand Up @@ -306,6 +307,23 @@ Here are some more useful flags:
default to using whatever operating system you are currently using. See
:ref:`version_and_platform_checks` for more about this feature.

- ``--show-column-numbers`` will add column offsets to error messages,
for example, the following indicates an error in line 12, column 9
(note that column offsets are 0-based):

.. code-block:: python

main.py:12:9: error: Unsupported operand types for / ("int" and "str")

- ``--scripts-are-modules`` will give command line arguments that
appear to be scripts (i.e. files whose name does not end in ``.py``)
a module name derived from the script name rather than the fixed
name ``__main__``. This allows checking more than one script in a
single mypy invocation. (The default ``__main__`` is technically
more correct, but if you have many scripts that import a large
package, the behavior enabled by this flag is often more
convenient.)

.. _config-file-flag:

- ``--config-file CONFIG_FILE`` causes configuration settings to be
Expand Down
0