Skip to content

Commit

Permalink
Update commit hashes in sync-typeshed (#14599)
Browse files Browse the repository at this point in the history
Also use pyproject.toml instead of README.md because there are fewer
pyproject.toml in mypy

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
hauntsaninja and AlexWaygood authored Feb 3, 2023
1 parent fe40f81 commit f527656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions misc/sync-typeshed.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


def check_state() -> None:
if not os.path.isfile("README.md") and not os.path.isdir("mypy"):
if not os.path.isfile("pyproject.toml") or not os.path.isdir("mypy"):
sys.exit("error: The current working directory must be the mypy repository root")
out = subprocess.check_output(["git", "status", "-s", os.path.join("mypy", "typeshed")])
if out:
Expand Down Expand Up @@ -185,9 +185,9 @@ def main() -> None:
print("Created typeshed sync commit.")

commits_to_cherry_pick = [
"780534b13722b7b0422178c049a1cbbf4ea4255b", # LiteralString reverts
"5319fa34a8004c1568bb6f032a07b8b14cc95bed", # sum reverts
"0062994228fb62975c6cef4d2c80d00c7aa1c545", # ctypes reverts
"820c46a4d75ec5f6dc95c09845a317ff59c4b4bf", # LiteralString reverts
"af7604de58c4c4952fd51a7556a6c56466113010", # sum reverts
"fe40f814387fc671ba0cc679453b01eabeb7c112", # ctypes reverts
]
for commit in commits_to_cherry_pick:
subprocess.run(["git", "cherry-pick", commit], check=True)
Expand Down

0 comments on commit f527656

Please sign in to comment.