# HG changeset patch # User Augie Fackler # Date 2019-11-06 20:11:30 # Node ID b16912f8c07ccf183b44147589d96b0fa5ca9e35 # Parent 2dcd4e7731932f876e6446df8a141148f7cc6852 vfs: add a NotImplementedError implementation of __call__ This helps pytype considerably on this file. Differential Revision: https://phab.mercurial-scm.org/D7265 diff --git a/mercurial/vfs.py b/mercurial/vfs.py --- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -54,6 +54,9 @@ class abstractvfs(object): '''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