We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4656c6f commit fad389eCopy full SHA for fad389e
1 file changed
Lib/tomllib/_parser.py
@@ -17,6 +17,9 @@
17
match_to_number,
18
)
19
20
+if sys.version_info < (3, 15):
21
+ from types import MappingProxyType as frozendict
22
+
23
TYPE_CHECKING = False
24
if TYPE_CHECKING:
25
from collections.abc import Iterable
@@ -44,7 +47,7 @@
44
47
KEY_INITIAL_CHARS: Final = BARE_KEY_CHARS | frozenset("\"'")
45
48
HEXDIGIT_CHARS: Final = frozenset("abcdef" "ABCDEF" "0123456789")
46
49
-BASIC_STR_ESCAPE_REPLACEMENTS: Final = frozendict( # type: ignore[name-defined]
50
+BASIC_STR_ESCAPE_REPLACEMENTS: Final = frozendict(
51
{
52
"\\b": "\u0008", # backspace
53
"\\t": "\u0009", # tab
0 commit comments