From 6932ff26c53adc9a4248636071cd8421d6713efd Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Thu, 14 May 2020 02:01:30 +0100 Subject: [PATCH] Set default for newstyle (#3962) * Set default for newstyle * Change default values to ... --- third_party/2and3/jinja2/environment.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/2and3/jinja2/environment.pyi b/third_party/2and3/jinja2/environment.pyi index 3a6fa7d31..a1826d914 100644 --- a/third_party/2and3/jinja2/environment.pyi +++ b/third_party/2and3/jinja2/environment.pyi @@ -118,9 +118,9 @@ class Environment: # Frequently added extensions are included here: # from InternationalizationExtension: - def install_gettext_translations(self, translations: Any, newstyle: Optional[bool]): ... - def install_null_translations(self, newstyle: Optional[bool]): ... - def install_gettext_callables(self, gettext: Callable[..., Any], ngettext: Callable[..., Any], newstyle: Optional[bool]): ... + def install_gettext_translations(self, translations: Any, newstyle: Optional[bool] = ...): ... + def install_null_translations(self, newstyle: Optional[bool] = ...): ... + def install_gettext_callables(self, gettext: Callable[..., Any], ngettext: Callable[..., Any], newstyle: Optional[bool] = ...): ... def uninstall_gettext_translations(self, translations: Any): ... def extract_translations(self, source: Any, gettext_functions: Any): ... newstyle_gettext: bool