Skip to content

Commit f527656

Browse files
Update commit hashes in sync-typeshed (#14599)
Also use pyproject.toml instead of README.md because there are fewer pyproject.toml in mypy Co-authored-by: Alex Waygood <[email protected]>
1 parent fe40f81 commit f527656

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

misc/sync-typeshed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

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

187187
commits_to_cherry_pick = [
188-
"780534b13722b7b0422178c049a1cbbf4ea4255b", # LiteralString reverts
189-
"5319fa34a8004c1568bb6f032a07b8b14cc95bed", # sum reverts
190-
"0062994228fb62975c6cef4d2c80d00c7aa1c545", # ctypes reverts
188+
"820c46a4d75ec5f6dc95c09845a317ff59c4b4bf", # LiteralString reverts
189+
"af7604de58c4c4952fd51a7556a6c56466113010", # sum reverts
190+
"fe40f814387fc671ba0cc679453b01eabeb7c112", # ctypes reverts
191191
]
192192
for commit in commits_to_cherry_pick:
193193
subprocess.run(["git", "cherry-pick", commit], check=True)

0 commit comments

Comments
 (0)