Skip to content

Commit a5db57f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6d0ab3e commit a5db57f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mkdocs_rss_plugin/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from email.utils import formatdate
1212
from pathlib import Path
1313
from re import compile as re_compile
14-
from typing import Optional
1514

1615
# 3rd party
1716
from jinja2 import Environment, FileSystemLoader, select_autoescape
@@ -218,7 +217,7 @@ def on_config(self, config: MkDocsConfig) -> MkDocsConfig:
218217
@event_priority(priority=-75)
219218
def on_page_content(
220219
self, html: str, page: Page, config: MkDocsConfig, files: Files
221-
) -> Optional[str]:
220+
) -> str | None:
222221
"""The page_content event is called after the Markdown text is rendered to HTML
223222
(but before being passed to a template) and can be used to alter the HTML
224223
body of the page.

0 commit comments

Comments
 (0)