diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index f6c1422f..9aa35620 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -98,7 +98,10 @@ class ZipFileIO(KnownContentFileIO): self._zip_path = zip_path def get_last_modified(self): - return os.path.getmtime(self._zip_path) + try: + return os.path.getmtime(self._zip_path) + except OSError: # Python 3 would probably only need FileNotFoundError + return None def _from_loader(loader, string): diff --git a/jedi/evaluate/names.py b/jedi/evaluate/names.py index 555ed0b0..23d7d79f 100644 --- a/jedi/evaluate/names.py +++ b/jedi/evaluate/names.py @@ -122,6 +122,7 @@ class TreeNameDefinition(AbstractTreeName): class ParamNameInterface(object): + # annotation default?! def get_kind(self): raise NotImplementedError