diff --git a/mypy/plugins/dataclasses.py b/mypy/plugins/dataclasses.py
--- a/mypy/plugins/dataclasses.py
+++ b/mypy/plugins/dataclasses.py
@@ -230,7 +230,8 @@ def transform(self) -> bool:
         if (decorator_arguments['match_args'] and
                 ('__match_args__' not in info.names or
                  info.names['__match_args__'].plugin_generated) and
-                attributes):
+                attributes and
+                py_version >= (3, 10)):
             str_type = ctx.api.named_type("builtins.str")
             literals: List[Type] = [LiteralType(attr.name, str_type)
                         for attr in attributes if attr.is_in_init]
diff --git a/mypy/semanal_namedtuple.py b/mypy/semanal_namedtuple.py
--- a/mypy/semanal_namedtuple.py
+++ b/mypy/semanal_namedtuple.py
@@ -447,7 +447,8 @@ def add_field(var: Var, is_initialized_in_class: bool = False,
         add_field(Var('_source', strtype), is_initialized_in_class=True)
         add_field(Var('__annotations__', ordereddictype), is_initialized_in_class=True)
         add_field(Var('__doc__', strtype), is_initialized_in_class=True)
-        add_field(Var('__match_args__', match_args_type), is_initialized_in_class=True)
+        if self.options.python_version >= (3, 10):
+            add_field(Var('__match_args__', match_args_type), is_initialized_in_class=True)
 
         tvd = TypeVarType(SELF_TVAR_NAME, info.fullname + '.' + SELF_TVAR_NAME,
                          -1, [], info.tuple_type)

diff --git a/mypy/test/testmerge.py b/mypy/test/testmerge.py
--- a/mypy/test/testmerge.py
+++ b/mypy/test/testmerge.py
@@ -7,7 +7,6 @@
 from mypy import build
 from mypy.build import BuildResult
 from mypy.modulefinder import BuildSource
-from mypy.defaults import PYTHON3_VERSION
 from mypy.errors import CompileError
 from mypy.nodes import (
     Node, MypyFile, SymbolTable, SymbolTableNode, TypeInfo, Expression, Var, TypeVarExpr,
@@ -107,7 +106,6 @@ def build(self, source: str, testcase: DataDrivenTestCase) -> Optional[BuildResu
         options.use_builtins_fixtures = True
         options.export_types = True
         options.show_traceback = True
-        options.python_version = PYTHON3_VERSION
         main_path = os.path.join(test_temp_dir, 'main')
         with open(main_path, 'w', encoding='utf8') as f:
             f.write(source)
diff --git a/test-data/unit/check-dataclasses.test b/test-data/unit/check-dataclasses.test
--- a/test-data/unit/check-dataclasses.test
+++ b/test-data/unit/check-dataclasses.test
@@ -1790,3 +1790,48 @@ class MyDataclass:
 class MyGeneric(Generic[T]): ...
 class MyClass(MyGeneric[MyDataclass]): ...
 [builtins fixtures/dataclasses.pyi]
+
+[case testDataclassWithMatchArgs]
+# flags: --python-version 3.10
+from dataclasses import dataclass
+@dataclass
+class One:
+    bar: int
+    baz: str
+o: One
+reveal_type(o.__match_args__)  # N: Revealed type is "Tuple[Literal['bar'], Literal['baz']]"
+@dataclass(match_args=True)
+class Two:
+    bar: int
+t: Two
+reveal_type(t.__match_args__)  # N: Revealed type is "Tuple[Literal['bar']]"
+[builtins fixtures/dataclasses.pyi]
+
+[case testDataclassWithoutMatchArgs]
+# flags: --python-version 3.10
+from dataclasses import dataclass
+@dataclass(match_args=False)
+class One:
+    bar: int
+    baz: str
+o: One
+reveal_type(o.__match_args__)  # E: "One" has no attribute "__match_args__" \
+                               # N: Revealed type is "Any"
+[builtins fixtures/dataclasses.pyi]
+
+[case testDataclassWithMatchArgsOldVersion]
+# flags: --python-version 3.9
+from dataclasses import dataclass
+@dataclass(match_args=True)
+class One:
+    bar: int
+o: One
+reveal_type(o.__match_args__)  # E: "One" has no attribute "__match_args__" \
+                               # N: Revealed type is "Any"
+@dataclass
+class Two:
+    bar: int
+t: Two
+reveal_type(t.__match_args__)  # E: "Two" has no attribute "__match_args__" \
+                               # N: Revealed type is "Any"
+[builtins fixtures/dataclasses.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
@@ -1134,3 +1134,26 @@ def f(fields) -> None:
     NT2 = namedtuple("bad", "x") # E: First argument to namedtuple() should be "NT2", not "bad"
     nt2: NT2 = NT2(x=1)
 [builtins fixtures/tuple.pyi]
+
+[case testNamedTupleHasMatchArgs]
+# flags: --python-version 3.10
+from typing import NamedTuple
+class One(NamedTuple):
+    bar: int
+    baz: str
+o: One
+reveal_type(o.__match_args__)  # N: Revealed type is "Tuple[Literal['bar'], Literal['baz']]"
+[builtins fixtures/tuple.pyi]
+[typing fixtures/typing-namedtuple.pyi]
+
+[case testNamedTupleHasNoMatchArgsOldVersion]
+# flags: --python-version 3.9
+from typing import NamedTuple
+class One(NamedTuple):
+    bar: int
+    baz: str
+o: One
+reveal_type(o.__match_args__)  # E: "One" has no attribute "__match_args__" \
+                               # N: Revealed type is "Any"
+[builtins fixtures/tuple.pyi]
+[typing fixtures/typing-namedtuple.pyi]
diff --git a/test-data/unit/deps.test b/test-data/unit/deps.test
--- a/test-data/unit/deps.test
+++ b/test-data/unit/deps.test
@@ -1417,7 +1417,7 @@ class D(C):
 <m.C> -> m, m.C, m.D
 <m.D> -> m.D
 
-[case testDataclassDeps]
+[case testDataclassDepsOldVersion]
 # flags: --python-version 3.7
 from dataclasses import dataclass
 
@@ -1432,6 +1432,36 @@ class B(A):
     y: int
 [builtins fixtures/dataclasses.pyi]
 
+[out]
+<m.A.(abstract)> -> <m.B.__init__>, m
+<m.A.__dataclass_fields__> -> <m.B.__dataclass_fields__>
+<m.A.__init__> -> <m.B.__init__>, m.B.__init__
+<m.A.__new__> -> <m.B.__new__>
+<m.A.x> -> <m.B.x>
+<m.A.y> -> <m.B.y>
+<m.A> -> m, m.A, m.B
+<m.A[wildcard]> -> m
+<m.B.y> -> m
+<m.B> -> m.B
+<m.Z> -> m
+<dataclasses.dataclass> -> m
+<dataclasses> -> m
+
+[case testDataclassDeps]
+# flags: --python-version 3.10
+from dataclasses import dataclass
+
+Z = int
+
+@dataclass
+class A:
+    x: Z
+
+@dataclass
+class B(A):
+    y: int
+[builtins fixtures/dataclasses.pyi]
+
 [out]
 <m.A.(abstract)> -> <m.B.__init__>, m
 <m.A.__dataclass_fields__> -> <m.B.__dataclass_fields__>
diff --git a/test-data/unit/merge.test b/test-data/unit/merge.test
--- a/test-data/unit/merge.test
+++ b/test-data/unit/merge.test
@@ -646,7 +646,7 @@ TypeInfo<2>(
     f<3>))
 
 [case testNamedTuple_typeinfo]
-
+# flags: --python-version 3.10
 import target
 [file target.py]
 from typing import NamedTuple
@@ -707,6 +707,65 @@ TypeInfo<2>(
     x<19> (target.A<0>)
     y<20> (target.A<0>)))
 
+[case testNamedTupleOldVersion_typeinfo]
+import target
+[file target.py]
+from typing import NamedTuple
+class A: pass
+N = NamedTuple('N', [('x', A)])
+[file target.py.next]
+from typing import NamedTuple
+class A: pass
+N = NamedTuple('N', [('x', A), ('y', A)])
+[builtins fixtures/tuple.pyi]
+[out]
+TypeInfo<0>(
+  Name(target.A)
+  Bases(builtins.object<1>)
+  Mro(target.A<0>, builtins.object<1>)
+  Names())
+TypeInfo<2>(
+  Name(target.N)
+  Bases(builtins.tuple[target.A<0>, ...]<3>)
+  Mro(target.N<2>, builtins.tuple<3>, typing.Sequence<4>, typing.Iterable<5>, builtins.object<1>)
+  Names(
+    _NT<6>
+    __annotations__<7> (builtins.object<1>)
+    __doc__<8> (builtins.str<9>)
+    __new__<10>
+    _asdict<11>
+    _field_defaults<12> (builtins.object<1>)
+    _field_types<13> (builtins.object<1>)
+    _fields<14> (Tuple[builtins.str<9>])
+    _make<15>
+    _replace<16>
+    _source<17> (builtins.str<9>)
+    x<18> (target.A<0>)))
+==>
+TypeInfo<0>(
+  Name(target.A)
+  Bases(builtins.object<1>)
+  Mro(target.A<0>, builtins.object<1>)
+  Names())
+TypeInfo<2>(
+  Name(target.N)
+  Bases(builtins.tuple[target.A<0>, ...]<3>)
+  Mro(target.N<2>, builtins.tuple<3>, typing.Sequence<4>, typing.Iterable<5>, builtins.object<1>)
+  Names(
+    _NT<6>
+    __annotations__<7> (builtins.object<1>)
+    __doc__<8> (builtins.str<9>)
+    __new__<10>
+    _asdict<11>
+    _field_defaults<12> (builtins.object<1>)
+    _field_types<13> (builtins.object<1>)
+    _fields<14> (Tuple[builtins.str<9>, builtins.str<9>])
+    _make<15>
+    _replace<16>
+    _source<17> (builtins.str<9>)
+    x<18> (target.A<0>)
+    y<19> (target.A<0>)))
+
 [case testUnionType_types]
 import target
 [file target.py]

mypy generates `__match_args__` for dataclasses and `NamedTuple`s on Python <3.10
**Bug Report**

Not a big deal, but mypy appears to generate `__match_args__` for dataclasses and `NamedTuple`s even when running with `--python-version` set to 3.9:

```python
from dataclasses import dataclass
from typing import NamedTuple

@dataclass
class One:
    bar: int

f: One
reveal_type(f.__match_args__)  # Revealed type is "Tuple[Literal['bar']]"

class Two(NamedTuple):
    baz: str

g: Two
reveal_type(g.__match_args__)  # Revealed type is "Tuple[Literal['baz']]"
```

**Expected Behavior**

Mypy should not autogenerate `__match_args__` when running with `--python-version` set to <3.10, as pattern-matching is new in 3.10.

**Your Environment**

- Mypy version used: `0.950+dev.a33d2353a81d075850a487f3913720037f2473aa (compiled: no)`
- Mypy command-line flags: `--python-version 3.9`
- Mypy configuration options from `mypy.ini` (and other config files): None
- Python version used: 3.10
- Operating system and version: Windows


This is probably a good issue for someone new to mypy.
mypy/test/testmerge.py::ASTMergeSuite::merge.test::testFunction mypy/test/testmerge.py::ASTMergeSuite::merge.test::testTypeType_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testLiteralMerge mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClass mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnlyWithSentinel mypy/test/testmerge.py::ASTMergeSuite::merge.test::testTypeVar_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testUnboundType_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClass_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesBasic mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnlyWithSentinelAndFieldOverride mypy/test/testmerge.py::ASTMergeSuite::merge.test::testConstructInstance mypy/test/testmerge.py::ASTMergeSuite::merge.test::testOverloaded_types mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesCustomInit mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnlyWithSentinelAndSubclass mypy/test/testmerge.py::ASTMergeSuite::merge.test::testCallMethod mypy/test/testmerge.py::ASTMergeSuite::merge.test::testOverloaded mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnlyWithMultipleSentinel mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesBasicInheritance mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClassAttribute mypy/test/testmerge.py::ASTMergeSuite::merge.test::testTypeVar_symtable mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClassAttribute_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesClassmethods mypy/test/testmerge.py::ASTMergeSuite::merge.test::testTypeAlias_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDeepInheritance mypy/test/testmerge.py::ASTMergeSuite::merge.test::testFunction_symtable mypy/test/testmerge.py::ASTMergeSuite::merge.test::testGenericFunction_types mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOverloadsAndClassmethods mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClass_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesMultipleInheritance mypy/test/testmerge.py::ASTMergeSuite::merge.test::testMergeOverloaded_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testTopLevelExpression mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testClassmethodShadowingFieldDoesNotCrash mypy/test/testmerge.py::ASTMergeSuite::merge.test::testRefreshVar_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDeepInitVarInheritance mypy/test/testmerge.py::ASTMergeSuite::merge.test::testExpression_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testRefreshTypeVar_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesClassVars mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOverriding mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClassAttribute_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testMethod_types mypy/test/testmerge.py::ASTMergeSuite::merge.test::testRefreshNamedTuple_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testTypeAliasInDataclassDoesNotCrash mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOverridingWithDefaults mypy/test/testmerge.py::ASTMergeSuite::merge.test::testRenameFunction mypy/test/testmerge.py::ASTMergeSuite::merge.test::testRefreshAttributeDefinedInClassBody_typeinfo mypy/test/testmerge.py::ASTMergeSuite::merge.test::testRenameFunction_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesFreezing mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassOrdering mypy/test/testmerge.py::ASTMergeSuite::merge.test::testDecorator_symtable mypy/test/testmerge.py::ASTMergeSuite::merge.test::testMergeWithBaseClass_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesFields mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassOrderingWithoutEquality mypy/test/testmerge.py::ASTMergeSuite::merge.test::testModuleAttribute mypy/test/testmerge.py::ASTMergeSuite::merge.test::testConditionalFunctionDefinition mypy/test/testmerge.py::ASTMergeSuite::merge.test::testNestedClassMethod_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesBadInit mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassOrderingWithCustomMethods mypy/test/testmerge.py::ASTMergeSuite::merge.test::testNamedTuple_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesMultiInit mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassDefaultsInheritance mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesMultiInitDefaults mypy/test/testmerge.py::ASTMergeSuite::merge.test::testMergeTypedDict_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenerics mypy/test/testmerge.py::ASTMergeSuite::merge.test::testNewType_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDefaults mypy/test/testmerge.py::ASTMergeSuite::merge.test::testUnionType_types mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassUntypedGenericInheritance mypy/test/testmerge.py::ASTMergeSuite::merge.test::testMetaclass_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDefaultFactories mypy/test/testmerge.py::ASTMergeSuite::merge.test::testCast_symtable mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericSubtype mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInitVarsAndDefer mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDefaultFactoryTypeChecking mypy/test/testmerge.py::ASTMergeSuite::merge.test::testClassBasedEnum_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericInheritance mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesNoInitInitVarInheritance mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDefaultOrdering mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassFactory mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassMultiGenericInheritance mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDefaultsIncremental mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnly mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericsClassmethod mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInitVarOverride mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesDefaultsMroOtherFile mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesForwardRefs mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnlyOnField mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInitVarNoOverride mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInheritingDuplicateField mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInitVars mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesOrderingKwOnlyOnFieldFalse mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInitVarPostInitOverride mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassInheritanceNoAnnotation mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testSlotsDefinitionWithTwoPasses1 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassCheckTypeVarBounds mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassInheritanceNoAnnotation2 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testSlotsDefinitionWithTwoPasses2 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithMatchArgs mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesInitVarIncremental mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testSlotsDefinitionWithTwoPasses3 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassHasAttributeWithFields mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithoutMatchArgs mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testNoComplainFieldNone mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testSlotsDefinitionWithTwoPasses4 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassCallableProperty mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testNoComplainFieldNoneStrict mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesAnyInherit mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDisallowUntypedWorksForward mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassCallableAssignment mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesCallableFrozen mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleUsedAsTuple mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDisallowUntypedWorksForwardBad mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassCallablePropertyWrongType mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassInFunctionDoesNotCrash mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithTupleFieldNamesUsedAsTuple mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassCallablePropertyWrongTypeAssignment mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesMultipleInheritanceWithNonDataclass mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testMemberExprWorksAsField mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleUnicode_python2 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassFieldDoesNotFailOnKwargsUnpacking mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassOrderingDeferred mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericInheritance2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleNoUnderscoreFields mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassFieldWithPositionalArguments mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassFieldDeferred mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassInheritOptionalType mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAccessingAttributes mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassFieldDeferredFrozen mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassFieldWithTypedDictUnpacking mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleClassPython35 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericInheritanceSpecialCase1 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleClassInStubPython35 mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithSlotsArg mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testTypeInDataclassDeferredStar mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericInheritanceSpecialCase2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAttributesAreReadOnly mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithSlotsDef mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDeferredDataclassInitSignature mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericWithBound mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithSlotsConflict mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDeferredDataclassInitSignatureSubclass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testTypingNamedTupleAttributesAreReadOnly mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassGenericBoundToInvalidTypeVarDoesNotCrash mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithSlotsArgBefore310 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleCreateWithPositionalArguments mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleCreateAndUseAsTuple mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassInitVarCannotBeSet mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleMissingClassAttribute mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAdditionalArgs mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testCreateNamedTupleWithKeywordArguments mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleFieldTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleEmptyItems mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testCrossFileNamedTupleForwardRefs mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleDefaults mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAndOtherSuperclass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleProperty mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT1 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithItemTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeMethod mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsDict mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithTupleFieldNamesWithItemTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeReplace mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleReplace mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleConstructorArgumentTypes mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT3 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeMake mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleIncompatibleRedefinition mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsBaseClass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT4 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleReplaceAsClass mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleInClassNamespace mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsBaseClass2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleReplaceTyped mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSelfRefNT5 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleInFunction mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleMake mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTuplesTwoAsBaseClasses mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testRecursiveNamedTupleInBases mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleForwardAsUpperBound mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTuplesTwoAsBaseClasses2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleFields mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleImportCycle mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSource mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSelfTypeWithNamedTupleAsBase mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithImportCycle mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSubclassOfRecursiveNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleUnit mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeReferenceToClassDerivedFrom mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testUnsafeOverlappingNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleJoinNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSubtyping mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testForwardReferenceInNamedTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleJoinTuple mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSimpleTypeInference mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testTypeNamedTupleClassmethod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testInheritanceWithMethodAndAttributeAndDeepHierarchy mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithImportCycle2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testConstructInstance mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testInheritAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAccessModuleAttribute mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testSimpleSelfReferentialNamedTuple mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testInheritMethod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testPackage mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeIsASuperTypeOfOtherNamedTuples mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testTypeNamedTupleCall mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeIsASuperTypeOfOtherNamedTuplesReturns mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleSubclassMulti mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAccessModuleAttribute2 mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testBoolInTuplesRegression mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testImport mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleNew mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWithBoolNarrowsToBool mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testCallImportedFunction mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testClassInPackage mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleClassMethodWithGenericReturnValue mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testImportModuleAs mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testInvalidNamedTupleWithinFunction mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testPackage__init__ mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testCallImportedFunctionInFunction mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsConditionalStrictOptionalDisabled mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testClassInPackage__init__ mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleHasMatchArgs mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testInheritanceSimple mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testConstructor mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testInheritanceWithMethodAndAttribute mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleDoubleForward mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testNonTrivialConstructor mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDefaultArgValue mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testImportFrom mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testAssignNamedTupleAsAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testIsInstance mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testCallFunction mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testImportFromAs mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleWrongfile mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testCallMethod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testNestedClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testUnreachableIsInstance mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testNestedClassAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAccessAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testIsInstanceAdHocIntersectionDeps mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleTypeNameMatchesVariableName mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testNestedClassInAnnotation mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testPartialNoneTypeAttributeCrash1 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAttributeWithClassType1 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testClassBody mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testNestedClassInAnnotation2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testPartialNoneTypeAttributeCrash2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAttributeWithClassType2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testVariableInitializedInClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testRelativeImport mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testVariableAnnotationInClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAttributeWithClassType3 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::NestedFunctionType mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testGlobalVariableInitialized mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testAttributeWithClassType4 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testMissingModuleClass1 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testGlobalVariableAnnotation mypy/test/testdeps.py::GetDependenciesSuite::deps.test::NestedFunctionBody mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testMissingModuleClass2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testProperty mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testTypedDict mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDecoratorDepsMod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testIgnoredMissingModuleAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testUnreachableAssignment mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDecoratorDepsFunc mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testIgnoredMissingInstanceAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsFromOverloadFunc mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDecoratorDepsDeeepNested mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testIgnoredMissingClassAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsToOverloadMod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDecoratorDepsNestedClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testTypedDict2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsFromOverloadMod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsToOverloadFunc mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDecoratorDepsClassInFunction mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsLiskovClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsFromOverloadToOverload mypy/test/testdeps.py::GetDependenciesSuite::deps.test::DecoratorDepsMethod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsLiskovMethod mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDecoratorMember mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testTypedDict3 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testIndexedStarLvalue mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsFromOverloadToOverloadDefaultClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDefinition mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testImportStar mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDecorator mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalBaseAttribute mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDefinitionIrrelevant mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDecoratorWithArgs mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalIgnoredImport1 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsFromOverloadToOverloadDefaultNested mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDefinitionMember mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogical__init__ mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalIgnoredImport2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalDefinitionClass mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalIgnoredFromImport mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testLogicalSuperPython2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsToOverloadGeneric mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDepsOverloadBothExternalAndImplementationType mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testCustomIterator mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testCustomIterator_python2 mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDataclassDeps
mypy/test/testmerge.py::ASTMergeSuite::merge.test::testNamedTupleOldVersion_typeinfo mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithMatchArgsOldVersion mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleHasNoMatchArgsOldVersion mypy/test/testdeps.py::GetDependenciesSuite::deps.test::testDataclassDepsOldVersion