diff --git a/misc/sync-typeshed.py b/misc/sync-typeshed.py index 743a2934e0c3..878ffaa23bfb 100644 --- a/misc/sync-typeshed.py +++ b/misc/sync-typeshed.py @@ -134,7 +134,7 @@ def main() -> None: parser.add_argument( "--commit", default=None, - help="Typeshed commit (default to latest master if using a repository clone)", + help="Typeshed commit (default to latest main if using a repository clone)", ) parser.add_argument( "--typeshed-dir", diff --git a/mypy/checker.py b/mypy/checker.py index d66bf764b517..a23c03b2b09a 100644 --- a/mypy/checker.py +++ b/mypy/checker.py @@ -4580,7 +4580,7 @@ def visit_with_stmt(self, s: WithStmt) -> None: # exceptions or not. We determine this using a heuristic based on the # return type of the __exit__ method -- see the discussion in # https://github.com/python/mypy/issues/7214 and the section about context managers - # in https://github.com/python/typeshed/blob/master/CONTRIBUTING.md#conventions + # in https://github.com/python/typeshed/blob/main/CONTRIBUTING.md#conventions # for more details. exit_ret_type = get_proper_type(exit_ret_type)