From f60ffe47a20854d44fe16d4748ec05a011cf5242 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 27 Apr 2018 14:38:22 -0700 Subject: [PATCH] add attributes to locale (#2056) Fixes #1888. --- stdlib/2and3/locale.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/locale.pyi b/stdlib/2and3/locale.pyi index 73ed0c759..0a031fd99 100644 --- a/stdlib/2and3/locale.pyi +++ b/stdlib/2and3/locale.pyi @@ -1,7 +1,7 @@ # Stubs for locale from decimal import Decimal -from typing import Any, Iterable, List, Mapping, Optional, Sequence, Tuple, Union +from typing import Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union import sys # workaround for mypy#2010 @@ -107,3 +107,6 @@ if sys.version_info >= (3, 5): def atof(string: _str) -> float: ... def atoi(string: _str) -> int: ... def str(float: float) -> _str: ... + +locale_alias: Dict[_str, _str] # undocumented +locale_encoding_alias: Dict[_str, _str] # undocumented