Skip to content

Commit 3fc7b35

Browse files
committed
fix
1 parent 3aedbbb commit 3fc7b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/extensions/prettyspecialmethods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import sphinx.addnodes as SphinxNodes
1717
from docutils import nodes
1818
from docutils.nodes import Text
19-
from typing import TYPE_CHECKING, Tuple
19+
from typing import TYPE_CHECKING, List, Tuple
2020
import sphinx.domains.python
2121
from sphinx.domains.python import py_sig_re
2222
from docutils.parsers.rst import directives
@@ -238,7 +238,7 @@ def _get_special_method(self, sig: str):
238238
return None
239239
return method_name
240240

241-
def get_signature_prefix(self, sig: str) -> list[nodes.Node]:
241+
def get_signature_prefix(self, sig: str) -> List[nodes.Node]:
242242
prefix = super().get_signature_prefix(sig)
243243
signature_prefix = getattr(self.env.app.config, CONF_SIG_PREFIX)
244244
if signature_prefix:

0 commit comments

Comments
 (0)