Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d126ce4
Add foundation for fine-grained incremental type checking
JukkaL Jan 20, 2017
c690fec
Attempt to fix tests on Windows
JukkaL Feb 9, 2017
38d69aa
Try to work around travis failure
JukkaL Feb 10, 2017
3b98a1d
Add missing import
JukkaL Mar 2, 2017
4f3b192
Another attempt to fix the travis build
JukkaL Mar 2, 2017
da6631c
Fix typos
JukkaL Mar 3, 2017
2799278
Support multiple rounds of event propagation
JukkaL Feb 9, 2017
28d8279
Keep track of targets that generated an error
JukkaL Feb 11, 2017
f38024b
Refactor and continue reporting error if no changes
JukkaL Mar 3, 2017
01ed71c
Fix bugs
JukkaL Mar 3, 2017
709740a
Create dependencies for inheritance
JukkaL Mar 7, 2017
3a67189
Detect differences in MRO
JukkaL Mar 7, 2017
42a77b6
Merge base classes and MRO
JukkaL Mar 7, 2017
093d17d
Add support for minimal debug output
JukkaL Mar 7, 2017
5a6eb05
Add test cases
JukkaL Mar 7, 2017
2763794
Fix to attributes, inheritance and fine-grained incremenal
JukkaL Mar 7, 2017
d9cfc3f
Fix handling changes to attributes in base classes
JukkaL Mar 8, 2017
07bc54b
Fixes to dependency generation
JukkaL Mar 8, 2017
d95864b
Support classes as fine-grained incremental targets
JukkaL Mar 8, 2017
baeb421
Fix inheritance test case
JukkaL Mar 8, 2017
41c81aa
Add minimal package support
JukkaL Mar 8, 2017
82afe22
Add tests for __init__ modules
JukkaL Mar 8, 2017
e5199da
Add test cases for module attributes
JukkaL Mar 8, 2017
84b7a62
Fix test case
JukkaL Mar 9, 2017
67a54d7
Implement multiple propagation steps for module attributes
JukkaL Mar 9, 2017
54c800d
Support constructors for fine-grained incremental
JukkaL Mar 9, 2017
770cc61
Support from m import with fine-grained incremental
JukkaL Mar 9, 2017
2f0c0a7
Support nested classes with fine-grained incremental
JukkaL Mar 10, 2017
b480807
Fix merge test case
JukkaL Mar 10, 2017
0636545
Remove debug print
JukkaL Mar 10, 2017
e271844
More nested class test cases
JukkaL Mar 10, 2017
291286f
Fixes to classes with fine-grained incremental
JukkaL Mar 10, 2017
25a2846
Minor fixes
JukkaL Mar 21, 2017
2b9104c
Add review feedback
JukkaL Mar 28, 2017
ef97a75
Address more feedback and fix a bug
JukkaL Mar 29, 2017
23ca75b
Add additional debug output
JukkaL Mar 30, 2017
027f79b
Fix issues caused by rebase
JukkaL Apr 3, 2017
dbd5d67
Remove travis CI workaround
JukkaL Apr 3, 2017
a47ecb8
Fix another issue caused by the rebase
JukkaL Apr 3, 2017
ba17fe4
Fix flaky test case
JukkaL Apr 3, 2017
d3bf923
Fix flaky test by making processing order deterministic
JukkaL Apr 3, 2017
5c03d7e
Attempt to fix tests on Windows
JukkaL Apr 4, 2017
89adec4
Fix deferred lambdas
JukkaL Apr 5, 2017
287f831
Fix self check failure
JukkaL Apr 5, 2017
43d16e4
Merge branch 'master' into fine-grained
JukkaL Apr 5, 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
Prev Previous commit
Next Next commit
Add tests for __init__ modules
  • Loading branch information
JukkaL committed Apr 3, 2017
commit 82afe2267e4127098ff62832c16f5f3f5f7f30a4
1 change: 1 addition & 0 deletions mypy/test/testfinegrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def find_steps() -> List[List[Tuple[str, str]]]:
assert num >= 2
name = re.sub(r'\.py.*', '', filename)
module = '.'.join(dnparts + [name])
module = re.sub(r'\.__init__$', '', module)
path = os.path.join(dn, filename)
steps.setdefault(num, []).append((module, path))
max_step = max(steps)
Expand Down
30 changes: 30 additions & 0 deletions test-data/unit/fine-grained.test
Original file line number Diff line number Diff line change
Expand Up @@ -527,3 +527,33 @@ def g(x: int) -> None: pass
[out]
==
m/n.py:3: error: Too few arguments for "g"

[case testChangeInPackage__init__]
import m
import m.n
def f() -> None:
m.g()
[file m/__init__.py]
def g() -> None: pass
[file m/__init__.py.2]
def g(x: int) -> None: pass
[file m/n.py]
[out]
==
main:3: error: Too few arguments for "g"

[case testTriggerTargetInPackage__init__]
import m
import m.n
[file m/__init__.py]
import a
def f() -> None:
a.g()
[file a.py]
def g() -> None: pass
[file a.py.2]
def g(x: int) -> None: pass
[file m/n.py]
[out]
==
m/__init__.py:3: error: Too few arguments for "g"