vfs: add a NotImplementedError implementation of __call__
This helps pytype considerably on this file.
Differential Revision: https://phab.mercurial-scm.org/D7265
--- 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