Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 51842: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 | e618a1756b08 |
children | f4733654f144 |
line wrap: on
line diff