changeset 43467:b16912f8c07c

vfs: add a NotImplementedError implementation of __call__ This helps pytype considerably on this file. Differential Revision: https://phab.mercurial-scm.org/D7265
author Augie Fackler <augie@google.com>
date Wed, 06 Nov 2019 15:11:30 -0500
parents 2dcd4e773193
children 8b0fa4de0064
files mercurial/vfs.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/vfs.py	Wed Nov 06 15:19:56 2019 -0500
+++ b/mercurial/vfs.py	Wed Nov 06 15:11:30 2019 -0500
@@ -54,6 +54,9 @@
         '''Prevent instantiation; don't call this from subclasses.'''
         raise NotImplementedError('attempted instantiating ' + str(type(self)))
 
+    def __call__(self, path, mode=b'rb', **kwargs):
+        raise NotImplementedError
+
     def _auditpath(self, path, mode):
         raise NotImplementedError