Skip to content

Commit ce57c76

Browse files
committed
Replace types.MappingProxyType with frozendict
1 parent 4d11aa9 commit ce57c76

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/tomllib/_parser.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
from __future__ import annotations
66

7-
from types import MappingProxyType
8-
97
__lazy_modules__ = ["tomllib._re"]
108

119
from ._re import (
@@ -47,7 +45,7 @@
4745
_NUMBER_INITIAL_CHARS: Final = _DECDIGIT_CHARS | frozenset("+-")
4846
_NUMBER_END_CHARS: Final = frozenset(",]}") | TOML_WS_AND_NEWLINE
4947

50-
BASIC_STR_ESCAPE_REPLACEMENTS: Final = MappingProxyType(
48+
BASIC_STR_ESCAPE_REPLACEMENTS: Final = frozendict( # type: ignore[name-defined]
5149
{
5250
"\\b": "\u0008", # backspace
5351
"\\t": "\u0009", # tab

0 commit comments

Comments
 (0)