pdoc/doc.py
def source_file(self) -> Optional[Path]:
        """The name of the Python source file in which this object was defined. `None` for built-in objects."""
        try:
            return Path(inspect.getsourcefile(self.obj) or inspect.getfile(self.obj))  # type: ignore
        except TypeError:
            return None
The name of the Python source file in which this object was defined. `None` for built-in objects.
The name of the Python source file in which this object was defined. `None` for built-in objects.
The name of the Python source file in which this object was defined . ` None ` for built - in objects .
def source_file(self) -> Optional[Path]:
        try:
            return Path(inspect.getsourcefile(self.obj) or inspect.getfile(self.obj))  
        except TypeError:
            return None
def source_file ( self ) -> Optional [ Path ] : try : return Path ( inspect . getsourcefile ( self . obj ) or inspect . getfile ( self . obj ) ) except TypeError : return None
The name of the Python source file in which this object was defined.
The name of the Python source file in which this object was defined .
"""The name of the Python source file in which this object was defined. `None` for built-in objects.""" # type: ignore
self