typing: add a trivial type hint to `mercurial/vfs.py`
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 10 Jul 2024 18:44:55 -0400
changeset 51679 be6d8ea6d3d2
parent 51678 0e16efe30866
child 51681 522b4d729e89
typing: add a trivial type hint to `mercurial/vfs.py` Since hg 3dbc7b1ecaba, pytype stopped seeing the return value of `rmtree` as `None`, and substituted `Any`.
mercurial/vfs.py
--- a/mercurial/vfs.py	Wed Jul 10 18:34:47 2024 -0400
+++ b/mercurial/vfs.py	Wed Jul 10 18:44:55 2024 -0400
@@ -291,7 +291,7 @@
 
     def rmtree(
         self, path: Optional[bytes] = None, ignore_errors=False, forcibly=False
-    ):
+    ) -> None:
         """Remove a directory tree recursively
 
         If ``forcibly``, this tries to remove READ-ONLY files, too.