vfs: add a NotImplementedError implementation of __call__
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 15:11:30 -0500
changeset 43467 b16912f8c07c
parent 43466 2dcd4e773193
child 43468 8b0fa4de0064
vfs: add a NotImplementedError implementation of __call__ This helps pytype considerably on this file. Differential Revision: https://phab.mercurial-scm.org/D7265
mercurial/vfs.py
--- 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