From 07fbcd2262ead74f16a26c797a645a36ae26aaa9 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Fri, 24 Jul 2020 15:49:08 +0100 Subject: [PATCH] Make this explicitly expect a Path --- jedi/api/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index 774a9f98..f4372df3 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -103,7 +103,7 @@ class BaseName(object): if module.is_stub() or not module.is_compiled(): # Compiled modules should not return a module path even if they # have one. - path = self._get_module_context().py__file__() + path: Optional[Path] = self._get_module_context().py__file__() if path is not None: return path