class_docstr: Mixin to render Doc objects that can be called
  
  i.e. classes (for the __init__ method) and functions/methods
class_docstr_tok: ["Mixin","to","render","Doc","objects","that","can","be","called","i.e",".","classes","(","for","the","__init__","method",")","and","functions\/methods"]
docstr: Return the parameters of the function
docstr_tok: ["Return","the","parameters","of","the","function"]
code: def get_function_parameters(self) -> dc.Parameters:
      """
      Return the parameters of the function
      """
      obj = self.obj
  
      # adapted from mkdocstrings-python jinja tempalate
      if not len(obj.parameters) > 0 or not obj.parent:
          return obj.parameters
  
      param = obj.parameters[0].name
      omit_first_parameter = (
          obj.parent.is_class and param in ("self", "cls")
      ) or (obj.parent.is_module and obj.is_class and param == "self")
  
      if omit_first_parameter:
          return dc.Parameters(*list(obj.parameters)[1:])
  
      return obj.parameters
  
file_path: plotnine/doc/_renderers/render/mixin_call.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, cast
  from griffe import dataclasses
  from quartodoc import layout
  from quartodoc.pandoc.blocks import CodeBlock, DefinitionItem, DefinitionList, Div
  from quartodoc.pandoc.components import Attr
  from quartodoc.pandoc.inlines import Code
  from ..format import formatted_signature, repr_obj
  from ..typing import DocstringSectionWithDefinitions
  from .doc import RenderDoc
label_desc: Use image node_id 3 for calling the __RenderDocCallMixin obj's underlying member method code with example usage: obj.get_function_parameters() and returns: obj, obj, dc