Skip to content

Commit

Permalink
Sync typeshed (and fix typeshed build breakage) (#6403)
Browse files Browse the repository at this point in the history
This requires another (wrong, of course) addition to the errors in
testNewAnalyzerBasicTypeshed_newsemanal, since there has been a typeshed
change that causes another newsemanal error.

(This is actually the main motivation for this sync, to allow fixing the
typeshed build breakage.)
  • Loading branch information
msullivan authored Feb 14, 2019
1 parent 5e64bd4 commit b8c78e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test-data/unit/pythoneval.test
Original file line number Diff line number Diff line change
Expand Up @@ -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*'

0 comments on commit b8c78e6

Please sign in to comment.