This is actually optional
This commit is contained in:
1 parent
9b3cd15c5f
commit
7d9205d4ae
1 file changed
+1
-1
@@ -165,7 +165,7 @@ class ModuleValue(ModuleMixin, TreeValue):
|
|||||||
return None
|
return None
|
||||||
return '.'.join(self.string_names)
|
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.
|
In contrast to Python's __file__ can be None.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user