Skip to content

Consistent quote wrapping around MessageBuilder.format as per issue #3409 #3430

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 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b4b7de9
Consistent quote wrapping around MessageBuilder.format as per issue #…
May 23, 2017
466a832
No quotes around Module
May 23, 2017
dc7c243
And even more tests that need to be updated
May 23, 2017
df58633
incorrect indentation
May 24, 2017
7940d76
Add 'how to run this one test' note to test quick start. (#3436)
carljm May 24, 2017
ccd95e6
Fix crashes in synthetic types (#3322)
ilevkivskyi May 24, 2017
75c526a
Fix bug in cache log (#3443)
pkch May 24, 2017
847d884
Sync typeshed (#3449)
gvanrossum May 25, 2017
a494197
Mismatch of inferred type and return type note (#3428)
quartox May 25, 2017
53879ef
Add type checking plugin support for functions (#3299)
JukkaL May 25, 2017
443c479
Add flag to avoid interpreting arguments with a default of None as Op…
ddfisher May 26, 2017
577dd99
Add mypy roadmap (#3460)
JukkaL May 26, 2017
3ba42e8
Print pytest output as it happens (#3463)
pkch May 26, 2017
278a10a
Fix last character cut in html-report if file does not end with newli…
ilinum May 26, 2017
4d61418
Better error message for invalid package names passed to mypy (#3447)
chernrick May 26, 2017
c0f7bba
Change label for variance section to just 'variance' (#3429)
quartox May 26, 2017
99f372e
Fix 'variance' label.
May 27, 2017
166d54d
Add console scripts (#3074)
emmatyping May 27, 2017
8c989bf
Allow NewType subclassing NewType. (#3465)
carljm May 28, 2017
9ec8a95
Fix None slice bounds with strict-optional (#3445)
miedzinski May 29, 2017
e1fcab8
Move version of extensions to post-release (#3348)
gvanrossum May 29, 2017
d238ab5
Remove bundled lib-typing (#3337)
JelleZijlstra May 29, 2017
ba55b1a
Consistent quote wrapping around MessageBuilder.format as per issue #…
May 23, 2017
e134f8f
No quotes around Module
May 23, 2017
60231de
And even more tests that need to be updated
May 23, 2017
735778e
incorrect indentation
May 24, 2017
5922be3
update tests & merge conflicts
May 30, 2017
b349b8e
and even more merge conflicts
May 30, 2017
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ python:

install:
- pip install -r test-requirements.txt
- python2 -m pip install --user typing
- python setup.py install

script:
Expand Down
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ DEALINGS IN THE SOFTWARE.
= = = = =

Portions of mypy are licensed under different licenses. The files
under stdlib-samples and lib-typing are licensed under the PSF 2
License, reproduced below.
under stdlib-samples are licensed under the PSF 2 License, reproduced below.

= = = = =

Expand Down
94 changes: 94 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Mypy Roadmap

The goal of the roadmap is to document areas the mypy core team is
planning to work on in the future or is currently working on. PRs
targeting these areas are very welcome, but please check first with a
core team member that nobody else is working on the same thing.

**Note:** This doesn’t include everything that the core team will work
on, and everything is subject to change. Near-term plans are likely
more accurate.

## April-June 2017

- Add more comprehensive testing for `--incremental` and `--quick`
modes to improve reliability. At least write more unit tests with
focus on areas that have previously had bugs.
([issue](https://github.com/python/mypy/issues/3455))

- Speed up `--quick` mode to better support million+ line codebases
through some of these:

- Make it possible to use remote caching for incremental cache
files. This would speed up a cold run with no local cache data.
We need to update incremental cache to use hashes to determine
whether files have changes to allow
[sharing cache data](https://github.com/python/mypy/issues/3403).

- See if we can speed up deserialization of incremental cache
files. Initial experiments aren’t very promising though so there
might not be any easy wins left.
([issue](https://github.com/python/mypy/issues/3456))

- Improve support for complex signatures such as `open(fn, 'rb')` and
specific complex decorators such as `contextlib.contextmanager`
through type checker plugins/hooks.
([issue](https://github.com/python/mypy/issues/1240))

- Document basic properties of all type operations used within mypy,
including compatibility, proper subtyping, joins and meets.
([issue](https://github.com/python/mypy/issues/3454))

- Make TypedDict an officially supported mypy feature. This makes it
possible to give precise types for dictionaries that represent JSON
objects, such as `{"path": "/dir/fnam.ext", "size": 1234}`.
([issue](https://github.com/python/mypy/issues/3453))

- Make error messages more useful and informative.
([issue](https://github.com/python/mypy/labels/topic-usability))

- Resolve [#2008](https://github.com/python/mypy/issues/2008) (we are
converging on approach 4).

## July-December 2017

- Invest some effort into systematically filling in missing
annotations and stubs in typeshed, with focus on features heavily
used at Dropbox. Better support for ORMs will be a separate
project.

- Improve opt-in warnings about `Any` types to make it easier to keep
code free from unwanted `Any` types. For example, warn about using
`list` (instead of `List[x]`) and calling `open` if we can’t infer a
precise return type, or using types imported from ignored modules
(they are implicitly `Any`).

- Add support for protocols and structural subtyping (PEP 544).

- Switch completely to pytest and remove the custom testing framework.
([issue](https://github.com/python/mypy/issues/1673))

- Make it possible to run mypy as a daemon to avoid reprocessing the
entire program on each run. This will improve performance
significantly. Even when using the incremental mode, processing a
large number of files is not cheap.

- Refactor and simplify specific tricky parts of mypy internals, such
as the [conditional type binder](https://github.com/python/mypy/issues/3457),
[symbol tables](https://github.com/python/mypy/issues/3458) or
the various [semantic analysis passes](https://github.com/python/mypy/issues/3459).

- Implement a general type system plugin architecture. It should be
able to support some typical ORM features at least, such as
metaclasses that add methods with automatically inferred signatures
and complex descriptors such as those used by Django models.
([issue](https://github.com/python/mypy/issues/1240))

- Add support for statically typed
[protobufs](https://developers.google.com/protocol-buffers/).

- Provide much faster, reliable interactive feedback through
fine-grained incremental type checking, built on top the daemon
mode.

- Start work on editor plugins and support for selected IDE features.
2 changes: 1 addition & 1 deletion docs/source/common_issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ not support ``sort()``) as a list and sort it in-place:
# Type of x is List[int] here.
x.sort() # Okay!

.. _invariance-vs-covariance:
.. _variance:

Invariance vs covariance
------------------------
Expand Down
2 changes: 2 additions & 0 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ overridden by the pattern sections matching the module name.
- ``strict_boolean`` (Boolean, default False) makes using non-boolean
expressions in conditions an error.

- ``no_implicit_optional`` (Boolean, default false) changes the treatment of
arguments with a default value of None by not implicitly making their type Optional

Example
*******
Expand Down
2 changes: 1 addition & 1 deletion docs/source/revision_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ List of major changes:

* Add :ref:`variance-of-generics`.

* Add :ref:`invariance-vs-covariance`.
* Add :ref:`variance`.

* Updates to :ref:`python-36`.

Expand Down
2 changes: 1 addition & 1 deletion extensions/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from distutils.core import setup

version = '0.2.0'
version = '0.3.0-dev'
description = 'Experimental type system extensions for programs checked with the mypy typechecker.'
long_description = '''
Mypy Extensions
Expand Down
14 changes: 0 additions & 14 deletions lib-typing/2.7/mod_generics_cache.py

This file was deleted.

46 changes: 0 additions & 46 deletions lib-typing/2.7/setup.py

This file was deleted.

Loading