|
26 | 26 | -- all cases so we can avoid constantly having to annotate it. The list of
|
27 | 27 | -- rechecked/stale files can be in any arbitrary order, or can be left empty
|
28 | 28 | -- if no files should be rechecked/stale.
|
| 29 | +-- |
| 30 | +-- There are additional incremental mode test cases in check-serialize.test. |
29 | 31 |
|
30 | 32 | [case testIncrementalEmpty]
|
31 | 33 | [rechecked]
|
@@ -1692,28 +1694,6 @@ main:1: error: Module 'ntcrash' has no attribute 'nope'
|
1692 | 1694 | [out2]
|
1693 | 1695 | main:1: error: Module 'ntcrash' has no attribute 'nope'
|
1694 | 1696 |
|
1695 |
| -[case testIncrementalNamedTupleInMethod4] |
1696 |
| -from ntcrash import C |
1697 |
| -reveal_type(C().a) |
1698 |
| -reveal_type(C().b) |
1699 |
| -reveal_type(C().c) |
1700 |
| -[file ntcrash.py] |
1701 |
| -from typing import NamedTuple |
1702 |
| -class C: |
1703 |
| - def __init__(self) -> None: |
1704 |
| - A = NamedTuple('A', [('x', int)]) |
1705 |
| - self.a = A(0) |
1706 |
| - self.b = A(0) # type: A |
1707 |
| - self.c = A |
1708 |
| -[out1] |
1709 |
| -main:2: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1710 |
| -main:3: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1711 |
| -main:4: error: Revealed type is 'def (x: builtins.int) -> Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1712 |
| -[out2] |
1713 |
| -main:2: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1714 |
| -main:3: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1715 |
| -main:4: error: Revealed type is 'def (x: builtins.int) -> Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1716 |
| - |
1717 | 1697 | [case testIncrementalTypedDictInMethod]
|
1718 | 1698 | from tdcrash import nope
|
1719 | 1699 | [file tdcrash.py]
|
@@ -1756,29 +1736,6 @@ main:1: error: Module 'tdcrash' has no attribute 'nope'
|
1756 | 1736 | [out2]
|
1757 | 1737 | main:1: error: Module 'tdcrash' has no attribute 'nope'
|
1758 | 1738 |
|
1759 |
| -[case testIncrementalTypedDictInMethod4] |
1760 |
| -from ntcrash import C |
1761 |
| -reveal_type(C().a) |
1762 |
| -reveal_type(C().b) |
1763 |
| -reveal_type(C().c) |
1764 |
| -[file ntcrash.py] |
1765 |
| -from mypy_extensions import TypedDict |
1766 |
| -class C: |
1767 |
| - def __init__(self) -> None: |
1768 |
| - A = TypedDict('A', {'x': int}) |
1769 |
| - self.a = A(x=0) |
1770 |
| - self.b = A(x=0) # type: A |
1771 |
| - self.c = A |
1772 |
| -[builtins fixtures/dict.pyi] |
1773 |
| -[out1] |
1774 |
| -main:2: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=typing.Mapping[builtins.str, builtins.int])' |
1775 |
| -main:3: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=ntcrash.C.A@4)' |
1776 |
| -main:4: error: Revealed type is 'def () -> ntcrash.C.A@4' |
1777 |
| -[out2] |
1778 |
| -main:2: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=typing.Mapping[builtins.str, builtins.int])' |
1779 |
| -main:3: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=ntcrash.C.A@4)' |
1780 |
| -main:4: error: Revealed type is 'def () -> ntcrash.C.A@4' |
1781 |
| - |
1782 | 1739 | [case testIncrementalInnerClassAttrInMethod]
|
1783 | 1740 | import crash
|
1784 | 1741 | nonexisting
|
|
0 commit comments