Skip to content

Commit ead98b3

Browse files
author
Guido van Rossum
committed
Test with crasher repro for #2535
1 parent e9b6855 commit ead98b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test-data/unit/check-incremental.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,3 +1640,15 @@ follow_imports = skip
16401640
main:3: error: Revealed type is 'builtins.int'
16411641
[out2]
16421642
main:3: error: Revealed type is 'Any'
1643+
1644+
[case testIncrementalNamedTupleInMethod]
1645+
from ntcrash import nope
1646+
[file ntcrash.py]
1647+
from typing import NamedTuple
1648+
class C:
1649+
def f(self) -> None:
1650+
A = NamedTuple('A', [('x', int), ('y', int)])
1651+
[out1]
1652+
main:1: error: Module 'ntcrash' has no attribute 'nope'
1653+
[out2]
1654+
main:1: error: Module 'ntcrash' has no attribute 'nope'

0 commit comments

Comments
 (0)