mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
0d892ba2b2
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 |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
third-party | ||
AUTODEPS | ||
DEFS |