9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

python: bump package version to 0.1.0, and requires Python 3.10+

This commit is contained in:
Anthony Donlon
2025-12-16 21:09:04 +08:00
parent 249cc2d6c3
commit 765180ae60
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import html
import secrets
from datetime import datetime, timezone
from typing import Any, Optional
from typing import Any
from jinja2 import Environment, PackageLoader, Template, select_autoescape
@@ -17,7 +17,7 @@ default_template: Template = env.get_template("error.html")
def render(params: dict,
allow_html: bool = True,
template: Optional[Template] = None,
template: Template | None = None,
*args: Any,
**kwargs: Any) -> str:
'''Render a customized Cloudflare error page.