Skip to content

Commit 43a605f

Browse files
koogorohauntsaninjaAlexWaygoodJelleZijlstra
authored
Mypybot/sync typeshed (#17280)
Sync typeshed before 1.11 release. --------- Co-authored-by: Shantanu <[email protected]> Co-authored-by: AlexWaygood <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 25087fd commit 43a605f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1943
-529
lines changed

mypy/fastparse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,8 +2041,10 @@ def visit_Subscript(self, n: ast3.Subscript) -> Type:
20412041
sliceval.col_offset = sliceval.lower.col_offset
20422042
else:
20432043
assert isinstance(n.slice, ast3.ExtSlice)
2044-
dims = copy.deepcopy(n.slice.dims)
2044+
dims = cast(List[ast3.expr], copy.deepcopy(n.slice.dims))
20452045
for s in dims:
2046+
# These fields don't actually have a col_offset attribute but we add
2047+
# it manually.
20462048
if getattr(s, "col_offset", None) is None:
20472049
if isinstance(s, ast3.Index):
20482050
s.col_offset = s.value.col_offset

mypy/pyinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def getsearchdirs() -> tuple[list[str], list[str]]:
7171

7272

7373
if __name__ == "__main__":
74-
sys.stdout.reconfigure(encoding="utf-8") # type: ignore [attr-defined]
74+
sys.stdout.reconfigure(encoding="utf-8") # type: ignore[union-attr]
7575
if sys.argv[-1] == "getsearchdirs":
7676
print(repr(getsearchdirs()))
7777
else:

mypy/typeshed/stdlib/VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ipaddress: 3.3-
166166
itertools: 3.0-
167167
json: 3.0-
168168
keyword: 3.0-
169-
lib2to3: 3.0-
169+
lib2to3: 3.0-3.12
170170
linecache: 3.0-
171171
locale: 3.0-
172172
logging: 3.0-

0 commit comments

Comments
 (0)