Skip to content

Commit b8c78e6

Browse files
authored
Sync typeshed (and fix typeshed build breakage) (#6403)
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.)
1 parent 5e64bd4 commit b8c78e6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test-data/unit/pythoneval.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,10 @@ from typing import Dict, List, Tuple
13651365
x: Dict[str, List[int]]
13661366
reveal_type(x['test'][0])
13671367
[out]
1368+
-- N.B: These errors are *wrong* and the new semantic analyzer can't yet
1369+
-- fully analyze typeshed
13681370
typing.pyi:251: error: Class typing.Sequence has abstract attributes "__len__"
13691371
typing.pyi:251: note: If it is meant to be abstract, add 'abc.ABCMeta' as an explicit metaclass
1372+
codecs.pyi:49: error: Cannot overwrite NamedTuple attribute "__init__"
13701373
ast.pyi:31: error: Name 'PyCF_ONLY_AST' already defined (possibly by an import)
13711374
_testNewAnalyzerBasicTypeshed_newsemanal.py:4: error: Revealed type is 'builtins.int*'

0 commit comments

Comments
 (0)