Skip to content

Conversation

@srittau
Copy link
Collaborator

@srittau srittau commented Apr 27, 2022

Part of #7367

from simplejson.scanner import JSONDecodeError as JSONDecodeError

_LoadsString: TypeAlias = Text | bytes | bytearray
_LoadsString: TypeAlias = str | bytes | bytearray
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, the explicit | bytearray isn't necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PEP 688 would make it necessary again.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or rather, we could possibly switch to types.Buffer (needs investigating).

@srittau srittau merged commit fa46774 into python:master Apr 27, 2022
@srittau srittau deleted the simplejson-py2 branch April 27, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants