diff --git a/mypy/typeshed b/mypy/typeshed index d8faf503ec2f..d275e73e1fe6 160000 --- a/mypy/typeshed +++ b/mypy/typeshed @@ -1 +1 @@ -Subproject commit d8faf503ec2f34cf575786ab5ea9383a68179966 +Subproject commit d275e73e1fe67c0824733406d8ae5071d775f570 diff --git a/test-data/unit/pythoneval.test b/test-data/unit/pythoneval.test index 983ef56384e1..1daa758e404f 100644 --- a/test-data/unit/pythoneval.test +++ b/test-data/unit/pythoneval.test @@ -1365,7 +1365,10 @@ from typing import Dict, List, Tuple x: Dict[str, List[int]] reveal_type(x['test'][0]) [out] +-- N.B: These errors are *wrong* and the new semantic analyzer can't yet +-- fully analyze typeshed typing.pyi:251: error: Class typing.Sequence has abstract attributes "__len__" typing.pyi:251: note: If it is meant to be abstract, add 'abc.ABCMeta' as an explicit metaclass +codecs.pyi:49: error: Cannot overwrite NamedTuple attribute "__init__" ast.pyi:31: error: Name 'PyCF_ONLY_AST' already defined (possibly by an import) _testNewAnalyzerBasicTypeshed_newsemanal.py:4: error: Revealed type is 'builtins.int*'