diff mercurial/vfs.py @ 51739:be6d8ea6d3d2

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`.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 10 Jul 2024 18:44:55 -0400
parents ba205f944cb4
children f4733654f144
line wrap: on
line diff
--- 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.