1
0
forked from VimPlug/jedi

Annotate these attributes

This commit is contained in:
Peter Law
2020-07-24 15:08:44 +01:00
parent 7d9205d4ae
commit b1f95b4bf9
3 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import os
from pathlib import Path
from typing import Optional
from jedi.inference.cache import inference_state_method_cache
from jedi.inference.names import AbstractNameDefinition, ModuleName
@@ -145,7 +146,7 @@ class ModuleValue(ModuleMixin, TreeValue):
)
self.file_io = file_io
if file_io is None:
self._path = None
self._path: Optional[Path] = None
else:
self._path = Path(file_io.path)
self.string_names = string_names # Optional[Tuple[str, ...]]