|
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]
|
@@ -1711,28 +1713,6 @@ main:1: error: Module 'ntcrash' has no attribute 'nope'
|
1711 | 1713 | [out2]
|
1712 | 1714 | main:1: error: Module 'ntcrash' has no attribute 'nope'
|
1713 | 1715 |
|
1714 |
| -[case testIncrementalNamedTupleInMethod4] |
1715 |
| -from ntcrash import C |
1716 |
| -reveal_type(C().a) |
1717 |
| -reveal_type(C().b) |
1718 |
| -reveal_type(C().c) |
1719 |
| -[file ntcrash.py] |
1720 |
| -from typing import NamedTuple |
1721 |
| -class C: |
1722 |
| - def __init__(self) -> None: |
1723 |
| - A = NamedTuple('A', [('x', int)]) |
1724 |
| - self.a = A(0) |
1725 |
| - self.b = A(0) # type: A |
1726 |
| - self.c = A |
1727 |
| -[out1] |
1728 |
| -main:2: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1729 |
| -main:3: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1730 |
| -main:4: error: Revealed type is 'def (x: builtins.int) -> Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1731 |
| -[out2] |
1732 |
| -main:2: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1733 |
| -main:3: error: Revealed type is 'Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1734 |
| -main:4: error: Revealed type is 'def (x: builtins.int) -> Tuple[builtins.int, fallback=ntcrash.C.A@4]' |
1735 |
| - |
1736 | 1716 | [case testIncrementalTypedDictInMethod]
|
1737 | 1717 | from tdcrash import nope
|
1738 | 1718 | [file tdcrash.py]
|
@@ -1775,29 +1755,6 @@ main:1: error: Module 'tdcrash' has no attribute 'nope'
|
1775 | 1755 | [out2]
|
1776 | 1756 | main:1: error: Module 'tdcrash' has no attribute 'nope'
|
1777 | 1757 |
|
1778 |
| -[case testIncrementalTypedDictInMethod4] |
1779 |
| -from ntcrash import C |
1780 |
| -reveal_type(C().a) |
1781 |
| -reveal_type(C().b) |
1782 |
| -reveal_type(C().c) |
1783 |
| -[file ntcrash.py] |
1784 |
| -from mypy_extensions import TypedDict |
1785 |
| -class C: |
1786 |
| - def __init__(self) -> None: |
1787 |
| - A = TypedDict('A', {'x': int}) |
1788 |
| - self.a = A(x=0) |
1789 |
| - self.b = A(x=0) # type: A |
1790 |
| - self.c = A |
1791 |
| -[builtins fixtures/dict.pyi] |
1792 |
| -[out1] |
1793 |
| -main:2: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=typing.Mapping[builtins.str, builtins.int])' |
1794 |
| -main:3: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=ntcrash.C.A@4)' |
1795 |
| -main:4: error: Revealed type is 'def () -> ntcrash.C.A@4' |
1796 |
| -[out2] |
1797 |
| -main:2: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=typing.Mapping[builtins.str, builtins.int])' |
1798 |
| -main:3: error: Revealed type is 'TypedDict(x=builtins.int, _fallback=ntcrash.C.A@4)' |
1799 |
| -main:4: error: Revealed type is 'def () -> ntcrash.C.A@4' |
1800 |
| - |
1801 | 1758 | [case testIncrementalInnerClassAttrInMethod]
|
1802 | 1759 | import crash
|
1803 | 1760 | nonexisting
|
|
0 commit comments