From: Philippe Cavalaria Date: Tue, 28 May 2024 08:54:08 +0000 (+0200) Subject: template: type BaseLoader autoescape kwarg as optional X-Git-Tag: v6.5.0b1~60^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3381%2Fhead;p=thirdparty%2Ftornado.git template: type BaseLoader autoescape kwarg as optional --- diff --git a/tornado/template.py b/tornado/template.py index d53e977c5..2340cdbef 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -399,7 +399,7 @@ class BaseLoader(object): def __init__( self, - autoescape: str = _DEFAULT_AUTOESCAPE, + autoescape: Optional[str] = _DEFAULT_AUTOESCAPE, namespace: Optional[Dict[str, Any]] = None, whitespace: Optional[str] = None, ) -> None: