mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
3c8739e179
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 |
||
---|---|---|
.. | ||
hgdemandimport | ||
hgext | ||
mercurial | ||
__init__.py | ||
__main__.py | ||
traceimport.py |