]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
template: type BaseLoader autoescape kwarg as optional 3381/head
authorPhilippe Cavalaria <pcavalar@duosecurity.com>
Tue, 28 May 2024 08:54:08 +0000 (10:54 +0200)
committerPhilippe Cavalaria <pcavalar@duosecurity.com>
Tue, 28 May 2024 08:54:08 +0000 (10:54 +0200)
tornado/template.py

index d53e977c5e48d8e212a076b034abefd958a2548b..2340cdbefd5e1621b38ecbbfc14c016480d4064f 100644 (file)
@@ -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: