1
0
forked from VimPlug/jedi

Merge pull request #2083 from diekhans/issue-2082-None-file-attr

Handle object with __file__ attribute having a None value (issue #2082)
This commit is contained in:
Dave Halter
2025-12-21 01:47:23 +00:00
committed by GitHub

View File

@@ -184,7 +184,7 @@ class DirectObjectAccess:
def py__file__(self) -> Optional[Path]:
try:
return Path(self._obj.__file__)
except AttributeError:
except (AttributeError, TypeError):
return None
def py__doc__(self):