Skip to content

Commit 670e24c

Browse files
committed
mypy
1 parent 7199ec4 commit 670e24c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/development/tutorials/examples/autodoc_intenum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

sphinx/ext/autodoc/importer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)