Mercurial > hg
diff mercurial/mpatch.h @ 51799:1888846a1ee2
typing: fix the hint for the `mode` argument of `platform.copymode()`
The posix module is doing a bitwise AND with this and an integer, so it can't be
bytes. The only caller that provides the argument is `util.mktempcopy()`, and
pytype infers the type as Any, which explains why this wasn't caught.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 10 Aug 2024 14:18:44 -0400 |
parents | d86908050375 |
children |