Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32c26f2

Browse files
authored
Typeshed branch 'master' was renamed to 'main' (#13980)
There aren't really any big changes required over on mypy's side (I was worried there would be more breakage, but I think mypy should be fine). Cf. python/typeshed#8956.
1 parent 55d0adf commit 32c26f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

misc/sync-typeshed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def main() -> None:
134134
parser.add_argument(
135135
"--commit",
136136
default=None,
137-
help="Typeshed commit (default to latest master if using a repository clone)",
137+
help="Typeshed commit (default to latest main if using a repository clone)",
138138
)
139139
parser.add_argument(
140140
"--typeshed-dir",

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4580,7 +4580,7 @@ def visit_with_stmt(self, s: WithStmt) -> None:
45804580
# exceptions or not. We determine this using a heuristic based on the
45814581
# return type of the __exit__ method -- see the discussion in
45824582
# https://github.com/python/mypy/issues/7214 and the section about context managers
4583-
# in https://github.com/python/typeshed/blob/master/CONTRIBUTING.md#conventions
4583+
# in https://github.com/python/typeshed/blob/main/CONTRIBUTING.md#conventions
45844584
# for more details.
45854585

45864586
exit_ret_type = get_proper_type(exit_ret_type)

0 commit comments

Comments
 (0)