docs: def methods(self) -> 'PrettyDir':
          """Returns all methods of the inspected object.
  
          Note that "methods" can mean "functions" when inspecting a module.
          """
          return PrettyDir(
              self.obj,
              [
                  pattr
                  for pattr in self.pattrs
                  if category_match(pattr.category, AttrCategory.FUNCTION)
              ],
          )