예제 #1
0
 def describe_signature(self, signode: TextElement) -> None:
     if len(self.attrs) == 0:
         return
     self.attrs[0].describe_signature(signode)
     if len(self.attrs) == 1:
         return
     for attr in self.attrs[1:]:
         signode.append(addnodes.desc_sig_space())
         attr.describe_signature(signode)
예제 #2
0
 def describe_signature(self, signode: TextElement) -> None:
     txt = str(self)
     signode.append(nodes.Text(txt, txt))
예제 #3
0
 def describe_signature(self, signode: TextElement) -> None:
     signode.append(nodes.Text(self.id, self.id))
예제 #4
0
 def describe_signature(self, signode: TextElement) -> None:
     signode.append(addnodes.desc_sig_punctuation('[[', '[['))
     signode.append(nodes.Text(self.arg))
     signode.append(addnodes.desc_sig_punctuation(']]', ']]'))