sapling/eden/scm/edenscm
Adam Simpkins 3c8739e179 py3: add type hints for util.atomictempfile
Summary:
Make `atomictempfile` derive from `typing.BinaryIO` so that the type checker
understands it can be used like a file.

This required defining all `BinaryIO` methods on this class.  This does result
in a fair amount of additional boilerplate code, but seems like the easiest
approach for now.

Reviewed By: markbt

Differential Revision: D19673539

fbshipit-source-id: b5775ca79b3af456b45e4ef5480711d7095e7949
2020-02-01 10:32:51 -08:00
..
hgdemandimport hgdemandimport: use a set for the ignored modules 2020-01-31 17:31:23 -08:00
hgext py3: move checkwinfilename() to a separate file and add type hints 2020-01-31 20:18:21 -08:00
mercurial py3: add type hints for util.atomictempfile 2020-02-01 10:32:51 -08:00
__init__.py diff: update for py3 2020-01-31 13:00:23 -08:00
__main__.py edenscm: add a main module 2020-01-30 18:09:14 -08:00
traceimport.py pyre: add stub for "bindings" 2020-01-31 13:18:54 -08:00