Skip to content

Commit 21f7d01

Browse files
authored
Use Final in json module (#12542)
1 parent fe2c401 commit 21f7d01

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/json/encoder.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from collections.abc import Callable, Iterator
22
from re import Pattern
3-
from typing import Any
3+
from typing import Any, Final
44

5-
ESCAPE: Pattern[str]
6-
ESCAPE_ASCII: Pattern[str]
7-
HAS_UTF8: Pattern[bytes]
8-
ESCAPE_DCT: dict[str, str]
9-
INFINITY: float
5+
ESCAPE: Final[Pattern[str]]
6+
ESCAPE_ASCII: Final[Pattern[str]]
7+
HAS_UTF8: Final[Pattern[bytes]]
8+
ESCAPE_DCT: Final[dict[str, str]]
9+
INFINITY: Final[float]
1010

1111
def py_encode_basestring(s: str) -> str: ... # undocumented
1212
def py_encode_basestring_ascii(s: str) -> str: ... # undocumented

0 commit comments

Comments
 (0)