parameters: (self)
return_statement: return self._get_dir() if self._get_dir else dir(self._module)
docstring: Return the overridden `dir` if one was provided, else apply `dir` to the module.
docstring_summary: Return the overridden `dir` if one was provided, else apply `dir` to the module.
docstring_tokens: Return the overridden dir if one was provided else apply dir to the module .
function: def __dir__(self):
          """Return the overridden `dir` if one was provided, else apply `dir` to the module."""
  
          return self._get_dir() if self._get_dir else dir(self._module)
function_tokens: def __dir__ ( self ) : return self . _get_dir ( ) if self . _get_dir else dir ( self . _module )