class_docstr: A string that is ready to be safely inserted into an HTML or XML
  document, either because it was escaped or because it was marked
  safe.
  
  Passing an object to the constructor converts it to text and wraps
  it to mark it safe without escaping. To escape the text, use the
  :meth:`escape` class method instead.
  
  >>> Markup("Hello, <em>World</em>!")
  Markup('Hello, <em>World</em>!')
  >>> Markup(42)
  Markup('42')
  >>> Markup.escape("Hello, <em>World</em>!")
  Markup('Hello &lt;em&gt;World&lt;/em&gt;!')
  
  This implements the ``__html__()`` interface that some frameworks
  use. Passing an object that implements ``__html__()`` will wrap the
  output of that method, marking it safe.
  
  >>> class Foo:
  ...     def __html__(self):
  ...         return '<a href="/foo">foo</a>'
  ...
  >>> Markup(Foo())
  Markup('<a href="/foo">foo</a>')
  
  This is a subclass of :class:`str`. It has the same methods, but
  escapes their arguments and returns a ``Markup`` instance.
  
  >>> Markup("<em>%s</em>") % ("foo & bar",)
  Markup('<em>foo &amp; bar</em>')
  >>> Markup("<em>Hello</em> ") + "<foo>"
  Markup('<em>Hello</em> &lt;foo&gt;')
class_docstr_tok: ["A","string","that","is","ready","to","be","safely","inserted","into","an","HTML","or","XML","document",",","either","because","it","was","escaped","or","because","it","was","marked","safe",".","Passing","an","object","to","the","constructor","converts","it","to","text","and","wraps","it","to","mark","it","safe","without","escaping",".","To","escape","the","text",",","use","the",":","meth",":","`","escape","`","class","method","instead",".",">",">",">","Markup","(","``","Hello",",","<","em",">","World","<","\/em",">","!","''",")","Markup","(","'Hello",",","<","em",">","World","<","\/em",">","!","'",")",">",">",">","Markup","(","42",")","Markup","(","'42","'",")",">",">",">","Markup.escape","(","``","Hello",",","<","em",">","World","<","\/em",">","!","''",")","Markup","(","'Hello","&","lt",";","em","&","gt",";","World","&","lt",";","\/em","&","gt",";","!","'",")","This","implements","the","``","__html__","(",")","``","interface","that","some","frameworks","use",".","Passing","an","object","that","implements","``","__html__","(",")","``","will","wrap","the","output","of","that","method",",","marking","it","safe",".",">",">",">","class","Foo",":","...","def","__html__","(","self",")",":","...","return","'","<","a","href=","''","\/foo","''",">","foo","<","\/a",">","'","...",">",">",">","Markup","(","Foo","(",")",")","Markup","(","'","<","a","href=","''","\/foo","''",">","foo","<","\/a",">","'",")","This","is","a","subclass","of",":","class",":","`","str","`",".","It","has","the","same","methods",",","but","escapes","their","arguments","and","returns","a","``","Markup","``","instance",".",">",">",">","Markup","(","``","<","em",">","%","s","<","\/em",">","''",")","%","(","``","foo","&","bar","''",",",")","Markup","(","'","<","em",">","foo","&","amp",";","bar","<","\/em",">","'",")",">",">",">","Markup","(","``","<","em",">","Hello","<","\/em",">","``",")","+","``","<","foo",">","''","Markup","(","'","<","em",">","Hello","<","\/em",">","&","lt",";","foo","&","gt",";","'",")"]
code: def split(  # type: ignore[override]
      self, sep: t.Optional[str] = None, maxsplit: int = -1
  ) -> t.List["te.Self"]:
      return [self.__class__(v) for v in super().split(sep, maxsplit)]
  
imports: import functools
  import re
  import string
  import sys
  import typing
label_desc: Use image node_id 9 for calling the Markup obj's underlying member method code with example usage: obj.split(sep, maxsplit) and returns: unknown