Mercurial > hg
view rust/chg/Cargo.toml @ 48483:290f9c150f70
pytype: stop excluding patch.py
The underlying `email.generator.BytesGenerator` is documented as requiring an
`fp` that accepts bytes, so I'm not sure why pytype is getting confused:
File "/mnt/c/Users/Matt/hg/mercurial/patch.py", line 112, in msgfp:
Function Generator.__init__ was called with the wrong arguments [wrong-arg-types]
Expected: (self, outfp: TextIO, ...)
Actually passed: (self, outfp: io.BytesIO, ...)
Differential Revision: https://phab.mercurial-scm.org/D11922
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 13 Dec 2021 20:19:09 -0500 |
parents | 9fc9526e283a |
children |
line wrap: on
line source
[package] name = "chg" version = "0.1.0" authors = ["Yuya Nishihara <yuya@tcha.org>"] description = "Client for Mercurial command server with cHg extension" license = "GPL-2.0+" edition = "2018" [dependencies] async-trait = "0.1" bytes = "0.5" futures = "0.3" libc = "0.2" log = { version = "0.4", features = ["std"] } tokio-hglib = "0.3" [dependencies.tokio] version = "0.2" features = ["rt-core", "io-util", "time", "process", "macros"] [build-dependencies] cc = "1.0"