Lint failure adding annotations to eden/scm/edenscm/dirstate.py

Reviewed By: quark-zju

Differential Revision: D42573407

fbshipit-source-id: 9cc19f28cb544a233889289c1a749a34f12e7889
This commit is contained in:
generatedunixname89002005307016 2023-01-24 17:25:14 -08:00 committed by Facebook GitHub Bot
parent 9a7ee24565
commit 787f7e8cd5

View File

@ -110,9 +110,8 @@ ParentChangeCallback = Callable[
]
# pyre-fixme[3]: Return type must be annotated.
# pyre-fixme[2]: Parameter must be annotated.
def fastreadp1(repopath):
def fastreadp1(repopath) -> Optional[bytes]:
"""Read dirstate p1 node without constructing repo or dirstate objects
This is the first 20-bytes of the dirstate file. All known dirstate