File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
doc/development/tutorials/examples Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ def can_document_member(
3030 except TypeError :
3131 return False
3232
33- def add_directive_header (self , sig : str ) -> None :
34- super ().add_directive_header (sig )
33+ def add_directive_header (self ) -> None :
34+ super ().add_directive_header ()
3535 self .add_line (' :final:' , self .get_sourcename ())
3636
3737 def add_content (
Original file line number Diff line number Diff line change @@ -1404,6 +1404,9 @@ def _format_signatures(
14041404 props = dispatch_props ,
14051405 )
14061406 if overloaded and analyzer is not None :
1407+ from sphinx .ext .autodoc ._property_types import _FunctionDefProperties
1408+
1409+ assert isinstance (props , _FunctionDefProperties )
14071410 actual = inspect .signature (
14081411 props ._obj ,
14091412 bound_method = not props .is_staticmethod ,
You can’t perform that action at this time.
0 commit comments