Bump mypy to 1.9, add to json.encoder, small fixups (#11549)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Shantanu
2024-03-09 14:25:00 -08:00
committed by GitHub
parent 5b1fd121e0
commit 4d8ae17776
40 changed files with 71 additions and 90 deletions

View File

@@ -2,6 +2,9 @@
simplejson.scanner.make_scanner
simplejson.scanner.JSONDecodeError.__init__
simplejson.JSONDecodeError.__init__
simplejson.encoder.c_make_encoder
simplejson.encoder.c_encode_basestring_ascii
simplejson.encoder.py_encode_basestring_ascii
# Tests are not included:
simplejson.tests.*

View File

@@ -57,4 +57,4 @@ class JSONEncoder:
class JSONEncoderForHTML(JSONEncoder): ...
def encode_basestring(s: str | bytes, _PY3: Literal[True] = ..., _q: str = ...) -> str: ...
def py_encode_basestring_ascii(s: str | bytes, _PY3: Literal[True] = ...) -> str: ...
def encode_basestring_ascii(s: str | bytes, _PY3: Literal[True] = ...) -> str: ...