add default for simplejson.JSONEncoder.iterencode (#9135)

4364525222/simplejson/encoder.py (L304)
This commit is contained in:
anthony sottile
2022-11-08 12:30:05 -05:00
committed by GitHub
parent 739460291b
commit b13f8e37a3
2 changed files with 1 additions and 5 deletions

View File

@@ -3,16 +3,12 @@ simplejson.JSONDecoder.__init__
simplejson.JSONDecoder.decode
simplejson.JSONDecoder.raw_decode
simplejson.JSONEncoder.__init__
simplejson.JSONEncoder.iterencode
simplejson.JSONEncoderForHTML.iterencode
simplejson.decoder.JSONDecoder.__init__
simplejson.decoder.JSONDecoder.decode
simplejson.decoder.JSONDecoder.raw_decode
simplejson.dump
simplejson.dumps
simplejson.encoder.JSONEncoder.__init__
simplejson.encoder.JSONEncoder.iterencode
simplejson.encoder.JSONEncoderForHTML.iterencode
simplejson.load
simplejson.loads
simplejson.scanner.JSONDecodeError.__init__

View File

@@ -5,6 +5,6 @@ class JSONEncoder:
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def encode(self, o: Any) -> str: ...
def default(self, o: Any) -> NoReturn: ...
def iterencode(self, o: Any, _one_shot: bool) -> Iterator[str]: ...
def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...
class JSONEncoderForHTML(JSONEncoder): ...