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 df40ed7 commit 98e6e45Copy full SHA for 98e6e45
Lib/tomllib/_parser.py
@@ -4,6 +4,8 @@
4
5
from __future__ import annotations
6
7
+from types import MappingProxyType
8
+
9
from ._re import (
10
RE_DATETIME,
11
RE_LOCALTIME,
@@ -40,7 +42,7 @@
40
42
KEY_INITIAL_CHARS: Final = BARE_KEY_CHARS | frozenset("\"'")
41
43
HEXDIGIT_CHARS: Final = frozenset("abcdef" "ABCDEF" "0123456789")
44
-BASIC_STR_ESCAPE_REPLACEMENTS: Final = frozendict(
45
+BASIC_STR_ESCAPE_REPLACEMENTS: Final = MappingProxyType(
46
{
47
"\\b": "\u0008", # backspace
48
"\\t": "\u0009", # tab
0 commit comments