From f50255025ad196c4ea2720e48e590540cb2ec5b7 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 2 Feb 2022 15:28:18 +0000 Subject: [PATCH] `calendar.different_locale.__enter__` returns `None`, not `_LocaleType` (#7108) --- stdlib/calendar.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/calendar.pyi b/stdlib/calendar.pyi index 108356610..17b59b9bc 100644 --- a/stdlib/calendar.pyi +++ b/stdlib/calendar.pyi @@ -105,7 +105,7 @@ class HTMLCalendar(Calendar): class different_locale: def __init__(self, locale: _LocaleType) -> None: ... - def __enter__(self) -> _LocaleType: ... + def __enter__(self) -> None: ... def __exit__(self, *args: Any) -> None: ... class LocaleTextCalendar(TextCalendar):