# HG changeset patch # User Matt Harbison # Date 1723314146 14400 # Node ID 62806be5cbda2a470f452c1d1156236ab1f663c8 # Parent 1888846a1ee26d97ff5cf1da5bba698a3eaace63 typing: add hints to `mercurial.util.mktempcopy()` Might as well, now that the previous commit indicated what types are required. diff -r 1888846a1ee2 -r 62806be5cbda mercurial/util.py --- a/mercurial/util.py Sat Aug 10 14:18:44 2024 -0400 +++ b/mercurial/util.py Sat Aug 10 14:22:26 2024 -0400 @@ -2432,7 +2432,12 @@ return path.split(pycompat.ossep) -def mktempcopy(name, emptyok=False, createmode=None, enforcewritable=False): +def mktempcopy( + name: bytes, + emptyok: bool = False, + createmode: Optional[int] = None, + enforcewritable: bool = False, +) -> bytes: """Create a temporary file with the same contents from name The permission bits are copied from the original file.