1
0
forked from VimPlug/jedi

Inherit from base class to placate mypy

This commit is contained in:
Peter Law
2020-07-24 19:28:49 +01:00
parent 48e5aa777b
commit 6315709fea

View File

@@ -1,5 +1,6 @@
import os
import sys
from importlib.abc import MetaPathFinder
from importlib.machinery import PathFinder
# Remove the first entry, because it's simply a directory entry that equals
@@ -16,7 +17,7 @@ def _get_paths():
return {'jedi': _jedi_path, 'parso': _parso_path}
class _ExactImporter(object):
class _ExactImporter(MetaPathFinder):
def __init__(self, path_dct):
self._path_dct = path_dct