{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "utils",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A simple utility to import something by its string name."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This is a way to expand the signature of the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "HasTraits"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " class constructor. This enables auto-completion of trait-names in IPython and xeus-python when having Jedi>=0.15 by adding trait names with their default values in the constructor signature."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Example:"
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": "from inspect import signature\n\nfrom traitlets import HasTraits, Int, Unicode, signature_has_traits\n\n@signature_has_traits\nclass Foo(HasTraits):\n    number1 = Int()\n    number2 = Int()\n    value = Unicode('Hello')\n\n    def __init__(self, arg1, **kwargs):\n        self.arg1 = arg1\n\n        super(Foo, self).__init__(**kwargs)\n\nprint(signature(Foo))  # <Signature (arg1, *, number1=0, number2=0, value='Hello', **kwargs)>",
          "execution_status": null
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Utils"
        }
      ],
      "level": 0,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Links"
        }
      ],
      "level": 1,
      "target": null
    }
  ],
  "local_refs": []
}