]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Mark Template autoescape kwarg as Optional 2715/head
authorMichael V. DePalatis <mike@depalatis.net>
Fri, 26 Jul 2019 17:01:11 +0000 (11:01 -0600)
committerMichael V. DePalatis <mike@depalatis.net>
Fri, 26 Jul 2019 17:01:11 +0000 (11:01 -0600)
tornado/template.py

index 7672d734ef64c73a627bc877fa921c3239eb162c..f2eddc6e741784685abde1abbefb5e5a4ba9b863 100644 (file)
@@ -264,7 +264,7 @@ class Template(object):
         name: str = "<string>",
         loader: Optional["BaseLoader"] = None,
         compress_whitespace: Union[bool, _UnsetMarker] = _UNSET,
-        autoescape: Union[str, _UnsetMarker] = _UNSET,
+        autoescape: Optional[Union[str, _UnsetMarker]] = _UNSET,
         whitespace: Optional[str] = None,
     ) -> None:
         """Construct a Template.