@@ -4363,7 +4363,7 @@ def print_rst(cls, **kw) -> str:
43634363 # 1. kw["title"]
43644364 # 2. cls.__dict__["_name"]
43654365 # 3. cls.__name__
4366- title = cls . __dict__ . get ("_name " , kw . get ("title " , cls .__name__ ))
4366+ title = kw . get ("title " , cls . __dict__ . get ("_name " , cls .__name__ ))
43674367 # Get label for this section
43684368 label = cls .__dict__ .get ("_label" , kw .get ("label" , "" ))
43694369 # Length of title
@@ -4431,7 +4431,7 @@ def print_rst(cls, **kw) -> str:
44314431 # Loop through section map
44324432 for secname , seccls in sec_cls_dict .items ():
44334433 # Create default title
4434- sectitle = f"Options for ``{ secname } `` section "
4434+ sectitle = f"``{ secname } ``"
44354435 # Clear any previos titles
44364436 kw .pop ("title" , None )
44374437 # Set options to turn on defualt title
@@ -5224,13 +5224,10 @@ def genr8_rst_type_list(opttypes, vdef=None, listdepth=0):
52245224 # Update remaining types
52255225 opttypeset .difference_update (FLOAT_TYPES )
52265226 # Convert each remaining type to a string
5227- try :
5228- strtypes = [
5229- f":class:`{ clsj .__name__ } `"
5230- for clsj in opttypeset
5231- ]
5232- except Exception :
5233- breakpoint ()
5227+ strtypes = [
5228+ f":class:`{ clsj .__name__ } `"
5229+ for clsj in opttypeset
5230+ ]
52345231 # Add types to string
52355232 type_parts .extend (sorted (strtypes ))
52365233 # Convert list of types to single string
0 commit comments