1
0
forked from VimPlug/jedi

Have all py__file__ methods return a Path

This commit is contained in:
Peter Law
2020-08-30 18:03:03 +01:00
parent 25a3e31ca8
commit aa265a44e1
4 changed files with 19 additions and 14 deletions

View File

@@ -1,3 +1,6 @@
from pathlib import Path
from typing import Optional
from jedi.inference.cache import inference_state_method_cache
from jedi.inference.filters import DictFilter
from jedi.inference.names import ValueNameMixin, AbstractNameDefinition
@@ -41,7 +44,7 @@ class ImplicitNamespaceValue(Value, SubModuleDictMixin):
string_name = self.py__package__()[-1]
return ImplicitNSName(self, string_name)
def py__file__(self):
def py__file__(self) -> Optional[Path]:
return None
def py__package__(self):