diff --git a/mypy/semanal_namedtuple.py b/mypy/semanal_namedtuple.py
--- a/mypy/semanal_namedtuple.py
+++ b/mypy/semanal_namedtuple.py
@@ -186,11 +186,16 @@ def check_namedtuple(self,
             # Error. Construct dummy return value.
             if var_name:
                 name = var_name
+                if is_func_scope:
+                    name += '@' + str(call.line)
             else:
-                name = 'namedtuple@' + str(call.line)
+                name = var_name = 'namedtuple@' + str(call.line)
             info = self.build_namedtuple_typeinfo(name, [], [], {}, node.line)
-            self.store_namedtuple_info(info, name, call, is_typed)
-            return name, info
+            self.store_namedtuple_info(info, var_name, call, is_typed)
+            if name != var_name or is_func_scope:
+                # NOTE: we skip local namespaces since they are not serialized.
+                self.api.add_symbol_skip_local(name, info)
+            return var_name, info
         if not ok:
             # This is a valid named tuple but some types are not ready.
             return typename, None

diff --git a/test-data/unit/check-incremental.test b/test-data/unit/check-incremental.test
--- a/test-data/unit/check-incremental.test
+++ b/test-data/unit/check-incremental.test
@@ -5711,3 +5711,32 @@ class C:
 [builtins fixtures/dict.pyi]
 [out2]
 tmp/a.py:2: error: "object" has no attribute "xyz"
+
+[case testIncrementalInvalidNamedTupleInUnannotatedFunction]
+import a
+
+[file a.py]
+import b
+
+[file a.py.2]
+import b # f
+
+[file b.py]
+from typing import NamedTuple
+
+def toplevel(fields):
+    TupleType = NamedTuple("TupleType", fields)
+    class InheritFromTuple(TupleType):
+        pass
+    NT2 = NamedTuple("bad", [('x', int)])
+    nt2: NT2 = NT2(x=1)
+
+class C:
+    def method(self, fields):
+        TupleType = NamedTuple("TupleType", fields)
+        class InheritFromTuple(TupleType):
+            pass
+        NT2 = NamedTuple("bad", [('x', int)])
+        nt2: NT2 = NT2(x=1)
+
+[builtins fixtures/tuple.pyi]
diff --git a/test-data/unit/check-namedtuple.test b/test-data/unit/check-namedtuple.test
--- a/test-data/unit/check-namedtuple.test
+++ b/test-data/unit/check-namedtuple.test
@@ -1120,3 +1120,17 @@ def bar1(c: C1) -> None:
         reveal_type(c)  # N: Revealed type is "Tuple[builtins.int, fallback=__main__.C1]"
 [builtins fixtures/tuple.pyi]
 [typing fixtures/typing-namedtuple.pyi]
+
+[case testInvalidNamedTupleWithinFunction]
+from collections import namedtuple
+
+def f(fields) -> None:
+    TupleType = namedtuple("TupleType", fields) \
+        # E: List or tuple literal expected as the second argument to "namedtuple()"
+    class InheritFromTuple(TupleType):
+        pass
+    t: TupleType
+    it: InheritFromTuple
+    NT2 = namedtuple("bad", "x") # E: First argument to namedtuple() should be "NT2", not "bad"
+    nt2: NT2 = NT2(x=1)
+[builtins fixtures/tuple.pyi]

"AssertionError: Cannot find component" for local namedtuple
<!--
  Use this form only if mypy reports an "INTERNAL ERROR" and/or gives a traceback.
  Please include the traceback and all other messages below (use `mypy --show-traceback`).
-->

**Crash Report**

mypy crashes when inheriting from a locally defined namedtuple, when all of the following is true:
- Its fields are not a literal
- Another file generates an `attr-defined` error
- Cache is enabled (without `--no-incremental`)

Seems to be related to https://github.com/python/mypy/issues/10913, but produces a traceback similar to the closed https://github.com/python/mypy/issues/7281.

**Traceback**

```
Traceback (most recent call last):
  File "/home/.../env/bin/mypy", line 8, in <module>
    sys.exit(console_entry())
  File "/home/.../env/lib/python3.7/site-packages/mypy/__main__.py", line 11, in console_entry
    main(None, sys.stdout, sys.stderr)
  File "mypy/main.py", line 87, in main
  File "mypy/main.py", line 165, in run_build
  File "mypy/build.py", line 179, in build
  File "mypy/build.py", line 254, in _build
  File "mypy/build.py", line 2697, in dispatch
  File "mypy/build.py", line 3014, in process_graph
  File "mypy/build.py", line 3092, in process_fresh_modules
  File "mypy/build.py", line 1991, in fix_cross_refs
  File "mypy/fixup.py", line 26, in fixup_module
  File "mypy/fixup.py", line 90, in visit_symbol_table
  File "mypy/fixup.py", line 49, in visit_type_info
  File "mypy/types.py", line 846, in accept
  File "mypy/fixup.py", line 154, in visit_instance
  File "mypy/fixup.py", line 269, in lookup_qualified_typeinfo
  File "mypy/fixup.py", line 297, in lookup_qualified
  File "mypy/fixup.py", line 306, in lookup_qualified_stnode
  File "mypy/lookup.py", line 47, in lookup_fully_qualified
AssertionError: Cannot find component 'TupleType@4' for 'a.TupleType@4'
```

**To Reproduce**

Use this script to reproduce:
```bash
#!/bin/sh

mkdir -p mypy_crash

cat >mypy_crash/a.py <<EOF
from collections import namedtuple

def crash(fields):
    TupleType = namedtuple("TupleType", fields)
    class InheritFromTuple(TupleType):
        pass
EOF

cat >mypy_crash/b.py <<EOF
from a import A
EOF

rm -rf .mypy_cache

echo "First run, should be ok"
mypy mypy_crash/
echo

echo "Second run, with cache disabled, should be ok"
mypy --no-incremental mypy_crash/
echo

echo "Third run, with cache enabled, this should crash"
mypy mypy_crash/
```

mypy does not crash if any of the following are removed:
- File `b.py`
- Import error in file `b.py`, e.g. by replacing `from a import A` by `from a import crash` (or any other valid name)
- Definition of `class InheritFromTuple` in `a.py`
- Argument `fields` in definition of namedtuple, e.g. by `TupleType = namedtuple("TupleType", 'a b c')`

**Your Environment**

<!-- Include as many relevant details about the environment you experienced the bug in -->

- Mypy version used: 0.910
- Mypy command-line flags: (none, see script)
- Mypy configuration options from `mypy.ini` (and other config files): (none, can reproduce without mypy.ini)
- Python version used: 3.7.9
- Operating system and version: Ubuntu 18.04.6 LTS (bionic)

<!--
You can freely edit this text, please remove all the lines
you believe are unnecessary.
-->


mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalEmpty mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSilencedModuleNoLongerCausesError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSubmoduleParentBackreferenceComplex mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBadChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBasics mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalReferenceNewFileWithImportFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBadChangeWithSave mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFixedBugCausesPropagation mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSimpleImportSequence mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalReferenceExistingFileWithImportFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalOkChangeWithSave mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalIncidentalChangeWithBugCausesPropagation mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithTypeIgnoreOnDirectImport mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInternalChangeOnly mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithTypeIgnoreOnImportFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalIncidentalChangeWithBugFixCausesPropagation mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalImportGone mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithComplexDictExpression mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithPartialTypeIgnore mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithComplexConstantExpressionNoAnnotation mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSilentImportsWithInnerImports mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalCallable mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalAnyIsDifferentFromIgnore mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSameNameChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithComplexConstantExpressionWithAnnotation mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSilentImportsWithInnerImportsAndNewFile mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSilentImportsAndImportsInClass mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWorksWithNestedClasses mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalPartialInterfaceChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSameFileSize mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSmall mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWorksWithBasicProtocols mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInternalFunctionDefinitionChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalUnsilencingModule mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInternalScramble mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSwitchFromNominalToStructural mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithDecorators mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithIgnores mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalMethodInterfaceChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSwitchFromStructuralToNominal mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalChangingClassAttributes mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithSilentImportsAndIgnore mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBaseClassChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalChangingFields mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWorksWithNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalRemoteError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalCascadingChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalChangingFieldsWithAssignment mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalRemoteErrorFixed mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWorksWithNestedNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalCheckingChangingFields mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBrokenCascade mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalChangedError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalPartialSubmoduleUpdate mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedClassDefinition mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalReplacingImports mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedClassRef mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalLongBrokenCascade mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSimpleBranchingModules mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalLoadsParentAfterChild mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalChangingAlias mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedBrokenCascade mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSubmoduleImport mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBaseClassAttributeConflict mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalStoresAliasTypeVars mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSubmoduleWithAttr mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFollowImportsSilent mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedBrokenCascadeWithType1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSilentImportsWithBlatantError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedSubmoduleImportFromWithAttr mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFollowImportsSkip mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalImportIsNewlySilenced mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedBrokenCascadeWithType2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFollowImportsError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedSubmoduleWithAttr mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalRemoteChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSubmoduleParentWithImportFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFollowImportsVariable mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeTypedDict mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalSubmoduleParentBackreference mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testClassNamesResolutionCrashAccess mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeMetaclass mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFollowImportsVariablePyProjectTOML mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testGenericTypeAliasesForwardAnyIncremental1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testClassNamesResolutionCrashReadCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeMetaclassInImportCycle1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNamedTupleInMethod mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testGenericTypeAliasesForwardAnyIncremental2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testClassNamesResolutionCrashReveal mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeMetaclassInImportCycle2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNamedTupleInMethod2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNamedTupleForwardAsUpperBoundSerialization mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testDeleteFile mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithSilentImports mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNamedTupleInMethod3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSelfRefNTIncremental1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testDeleteFileWithinCycle mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testForwardNamedTupleToUnionWithOtherNamedTUple mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSelfRefNTIncremental2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNoCrashForwardRefToBrokenDoubleNewTypeIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testThreePassesBasic mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalTypedDictInMethod mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNoCrashForwardRefOverloadIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSelfRefNTIncremental3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testThreePassesErrorInThirdPass mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNoCrashForwardRefOverloadIncrementalClass mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSelfRefNTIncremental4 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalTypedDictInMethod2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testThreePassesThirdPassFixesError mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNewTypeFromForwardNamedTupleIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSelfRefNTIncremental5 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCacheDeletedAfterErrorsFound mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalTypedDictInMethod3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCrashWithPartialGlobalAndCycle mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNewTypeFromForwardTypedDictIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCacheDeletedAfterErrorsFound2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalCrashOnTypeWithFunction mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testForwardTypeAliasInBase1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNewTypeInMethod mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCacheDeletedAfterErrorsFound3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInnerClassAttrInMethod mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testForwardTypeAliasInBase2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testReprocessModuleEvenIfInterfaceHashDoesNotChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeRecursiveAliases1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInnerClassAttrInMethodReveal mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCacheDeletedAfterErrorsFound4 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeRecursiveAliases2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNoCrashOnDeletedWithCacheOnCmdline mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testTreeShadowingViaParentPackage mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testGenericMethodRestoreMetaLevel mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeAbstractPropertyIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeRecursiveAliases3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testErrorsAffectDependentsOnly mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testGenericMethodRestoreMetaLevel2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSerializeAbstractPropertyDisallowUntypedIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testDisallowAnyExprIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testImportUnusedIgnore1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testGenericMethodRestoreMetaLevel3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalStrictOptional mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalPerFileFlags mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalThreeRuns mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testImportUnusedIgnore2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalClassVar mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testDeletedDepLineNumber mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testRegularUsesFgCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalSubclassingCached mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalClassVarGone mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInheritanceAddAnnotation mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCachingClassVar mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFgCacheNeedsFgCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalMetaclassUpdate mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalSubclassingCachedConverter mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalPackageNameOverload mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalLotsOfInheritance mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesArguments mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalFineGrainedCacheError1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInheritanceProperty mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalSubclassingCachedType mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesDunder mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithIgnoresTwice mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBustedFineGrainedCache1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesSubclassModified mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIgnoredImport2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalArguments mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBustedFineGrainedCache2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testDeletionOfSubmoduleTriggersImportFrom2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesSubclassModifiedErrorFirst mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testDeleteIndirectDependency mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalBustedFineGrainedCache3 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesThreeFiles mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalDunder mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testImportReExportInCycle mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWorkingFineGrainedCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testModuleGetattrInitIncremental2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesThreeRuns mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesSubclassingCached mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalSubclassModified mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testModuleGetattrIncrementalSerializeVarFlag mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testParentPatchingMess mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalDataclassesSubclassingCachedType mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubs mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsIgnorePackagePartial mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsPackage mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCachedBadProtocolNote mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalSubclassModifiedErrorFirst mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFinalAddFinalVarAssign mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsPackageFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIndirectDepsAlwaysPatched mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFinalAddFinalVarOverride mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsPackagePartial mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testModuleGetattrInitIncremental mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalThreeFiles mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFinalAddFinalMethodOverride mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsPackagePartialGetAttr mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVarAliasExisting mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVar mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsIgnore mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadFunction mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVarAlias mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsIgnorePackage mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalConverterInSubmodule mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVarLocal mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVarClass mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedMissingStubsIgnorePackageFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFollowImportSkipNotInvalidatedOnAddedStubOnFollowForStubs mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVarClassAlias mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testRecursiveAliasImported mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedSkippedStubsPackageFrom mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFollowImportSkipNotInvalidatedOnPresent mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByBadVarExisting mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByIdemAlias mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFollowImportSkipNotInvalidatedOnPresentPackage mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNewAnalyzerIncrementalBrokenNamedTupleNested mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFollowImportSkipNotInvalidatedOnAdded mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalConverterManyStyles mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByIdemAliasReversed mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testFollowImportSkipInvalidatedOnAddedStub mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNewAnalyzerIncrementalMethodNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByIdemAliasGeneric mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAttrsIncrementalConverterInFunction mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNodeCreatedFromGetattr mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByIdemAliasImported mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalNoChangeSameName mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testOverrideByIdemAliasImportedReversed mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalNoChangeTuple mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNewAnalyzerIncrementalNestedEnum mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testBadEnumLoading mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testConditionalExceptionAliasOverride mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalIsInstanceChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testCannotDetermineTypeFromOtherModule mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalIndirectSkipWarnUnused mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testChangedPluginsInvalidateCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testRedefinitionClass mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalUnderlyingObjChang mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalNoChange mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalIntersectionToUnreachable mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testChangedPluginsInvalidateCache2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNestedTypeAlias mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIsInstanceAdHocIntersectionIncrementalUnreachaableToIntersection mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testEnumAreStillFinalAfterCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedPluginsInvalidateCache mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNamespacePackage1 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testStubFixupIssues mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testSlotsSerialization mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalNamespacePackage2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testRemovedPluginsInvalidateCache mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleUnicode_python2 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testExplicitReexportImportCycleWildcard mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testPluginConfigData mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleNoUnderscoreFields mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testTypingNamedTupleAttributesAreReadOnly mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalWithDifferentKindsOfNestedTypesWithinMethod mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAccessingAttributes mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testLiteralIncrementalTurningIntoLiteral mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleCreateWithPositionalArguments mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleClassPython35 mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testAddedSubStarImport mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleClassInStubPython35 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testCreateNamedTupleWithKeywordArguments mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testNewAnalyzerIncrementalBrokenNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAttributesAreReadOnly mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleCreateAndUseAsTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsBaseClass2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleDefaults mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAdditionalArgs mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTuplesTwoAsBaseClasses mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithItemTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSubtyping mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTuplesTwoAsBaseClasses2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithTupleFieldNamesWithItemTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSimpleTypeInference mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeWithNamedTupleAsBase mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleConstructorArgumentTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleMissingClassAttribute mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeReferenceToClassDerivedFrom mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsBaseClass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleProperty mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleEmptyItems mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleReplaceTyped mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleUnit mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleUsedAsTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsDict mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleMake mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleJoinNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithTupleFieldNamesUsedAsTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleReplace mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleFields mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleJoinTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAndOtherSuperclass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSource mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleReplaceAsClass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleFieldTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeMethod mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleInFunction mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeMake mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithImportCycle mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleIncompatibleRedefinition mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleForwardAsUpperBound mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeReplace mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT1 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithImportCycle2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSimpleSelfReferentialNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testCrossFileNamedTupleForwardRefs mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT3 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleInClassNamespace mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT5 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleImportCycle mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testRecursiveNamedTupleInBases mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testForwardReferenceInNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT4 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testUnsafeOverlappingNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testTypeNamedTupleClassmethod mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSubclassMulti mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleClassMethodWithGenericReturnValue mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSubclassOfRecursiveNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsConditionalStrictOptionalDisabled mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWrongfile mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testTypeNamedTupleCall mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testAssignNamedTupleAsAttribute mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleNew mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeIsASuperTypeOfOtherNamedTuples mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeIsASuperTypeOfOtherNamedTuplesReturns mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeNameMatchesVariableName mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleDoubleForward mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithBoolNarrowsToBool mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testBoolInTuplesRegression mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testInvalidNamedTupleWithinFunction
mypy/test/testcheck.py::TypeCheckSuite::check-incremental.test::testIncrementalInvalidNamedTupleInUnannotatedFunction