sapling/eden
Adam Simpkins 0d892ba2b2 improve python typing in the integration repo classes
Summary:
Update repobase.py, hgrepo.py, and gitrepo.py to include python type hints for
all functions and to pass most of mypy's strict type checking.

There are still a couple minor errors around the fact that hgrepo.hg() and
gitrepo.git() return an `Optional[str]` rather than a plain `str`.  Many callers
know that they cannot return None unless the stdout argument is None, but mypy
can't figure this out.  In the long run maybe we should split these into two
separate methods, one that always returns `str` and one that always returns
`None`.

Reviewed By: wez

Differential Revision: D7341608

fbshipit-source-id: c62da578fb32edb9272363fadabbdc11b1d5d2c2
2018-03-20 15:07:39 -07:00
..
cli Added thrift request to report outstanding FUSE calls 2018-03-20 10:25:49 -07:00
docs add an overview doc for our threading strategy 2017-12-12 12:51:23 -08:00
fs throw all errno exceptions as std::generic_category 2018-03-20 13:38:45 -07:00
hooks Remove TARGETS files 2018-02-20 19:57:45 -08:00
integration improve python typing in the integration repo classes 2018-03-20 15:07:39 -07:00
py Remove TARGETS files 2018-02-20 19:57:45 -08:00
scripts unmount stale edenfs mounts in eden doctor 2018-01-19 11:06:51 -08:00
third-party Remove TARGETS files 2018-02-20 19:57:45 -08:00
AUTODEPS Set up arc lint to run autodeps automatically for Eden. 2017-11-21 18:23:41 -08:00
DEFS have hg_import_helper.py use the local mercurial code during tests 2018-02-15 22:11:38 -08:00