Skip to content

Add --disallow-any-generics to --strict #5685

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

Merged
merged 28 commits into from
Oct 11, 2018
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
94403b4
Add --disallow-any-generics to --strict
Sep 27, 2018
59c21aa
Namespaces refactor (#5686)
gvanrossum Sep 27, 2018
23c370c
Namespaces refactor part 2 (#5690)
gvanrossum Sep 29, 2018
2347f63
Remove unused imports in build module (#5693)
ceh Sep 29, 2018
29152c1
Remove unused imports (#5694)
ceh Sep 29, 2018
85c173b
Make return type implicitly None for type checked __init__ and __init…
onlined Oct 1, 2018
4892882
Add mention of `runtests` script to tests readme (#5709)
TV4Fun Oct 1, 2018
0b6260b
Use sys.executable for invoking mypy in runtests if it is >=Python 3.…
emmatyping Oct 1, 2018
ad935cb
Fix the code sample on the "Duck type compatibility" docs page. (#5711)
teskje Oct 1, 2018
652ec81
Micro-optimization of TypeInfo.__bool__ (#5712)
msullivan Oct 1, 2018
6d886e9
Improve usage of outer context for inference (#5699)
ilevkivskyi Oct 2, 2018
7b4ed0f
Sync typeshed (#5717)
gvanrossum Oct 2, 2018
6e9d479
Minor Callable optimizations (#5721)
JukkaL Oct 3, 2018
3c88433
Optimize mypy.fastparse (Python 3 only) (#5722)
JukkaL Oct 3, 2018
35627f7
Namespace packages (PEP 420) (#5691)
gvanrossum Oct 3, 2018
3133f01
Tweak TypeState to avoid getattrs under mypyc (#5726)
msullivan Oct 3, 2018
0a52c2e
Use a raw string for a regex (#5729)
gvanrossum Oct 3, 2018
549f71d
Increase the GC threshold 3x (#5734)
JukkaL Oct 4, 2018
45a2a4e
DataDrivenTestCase: only use .file, not .path (#5731)
elazarg Oct 4, 2018
d81987d
Mark --quick-and-dirty as deprecated. (#5737)
gvanrossum Oct 4, 2018
7c0bf9b
Specify `--disallow-any-generics` via `add_invertible_flag`
Oct 4, 2018
fc89540
Update typeshed
Oct 4, 2018
5b11056
Merge branch 'master' of github.com:python/mypy into strict-dissalow-…
Oct 4, 2018
2a38d35
Revert "Update typeshed"
Oct 4, 2018
3bfcf2f
Shorten too long line
Oct 4, 2018
2ea3224
Add unit tests for --disallow-any-generics
Oct 4, 2018
e561452
Add test and remove unnecessary test fixtures
Oct 10, 2018
408bcfe
Update testCheckAllowAnyGenericAnyGeneric
Oct 11, 2018
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
Increase the GC threshold 3x (#5734)
This seems to speed up compiled mypy by up to about 4%, with marginal
changes to memory use.
  • Loading branch information
JukkaL authored and root committed Oct 4, 2018
commit 549f71d3b449a4d545e880ef081f23997260fe13
2 changes: 1 addition & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _build(sources: List[BuildSource],
fscache: Optional[FileSystemCache],
) -> BuildResult:
# This seems the most reasonable place to tune garbage collection.
gc.set_threshold(50000)
gc.set_threshold(150 * 1000)

data_dir = default_data_dir()
fscache = fscache or FileSystemCache()
Expand Down