Skip to content

Commit 4c52fb6

Browse files
committed
Make func arguments explicit
1 parent e9fe350 commit 4c52fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinxcontrib/email/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
def setup(app: Sphinx) -> Dict[str, Any]:
2323
app.add_config_value(name="email_automode", default=False, rebuild="env")
24-
app.connect("html-page-context", html_page_context_handler)
25-
app.add_role("email", EmailRole())
24+
app.connect(event="html-page-context", callback=html_page_context_handler)
25+
app.add_role(name="email", role=EmailRole())
2626
return {"version": ".".join(__version__.split(".")[:3])}

0 commit comments

Comments
 (0)