This is actually optional

This commit is contained in:
Peter Law
2020-07-24 15:04:37 +01:00
parent 9b3cd15c5f
commit 7d9205d4ae

View File

@@ -165,7 +165,7 @@ class ModuleValue(ModuleMixin, TreeValue):
return None
return '.'.join(self.string_names)
def py__file__(self) -> Path:
def py__file__(self) -> Optional[Path]:
"""
In contrast to Python's __file__ can be None.
"""