Drop support for Python 3.9 (#1766)

This commit is contained in:
Sebastián Ramírez
2026-02-20 08:34:55 -08:00
committed by GitHub
parent ffdcb44ae2
commit ede8dd062d
229 changed files with 473 additions and 8406 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Union
from typing import Any
from mkdocs.config.defaults import MkDocsConfig
from mkdocs.structure.files import Files
@@ -7,9 +7,9 @@ from mkdocs.structure.pages import Page
def generate_renamed_section_items(
items: list[Union[Page, Section, Link]], *, config: MkDocsConfig
) -> list[Union[Page, Section, Link]]:
new_items: list[Union[Page, Section, Link]] = []
items: list[Page | Section | Link], *, config: MkDocsConfig
) -> list[Page | Section | Link]:
new_items: list[Page | Section | Link] = []
for item in items:
if isinstance(item, Section):
new_title = item.title