pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/typeshed/pull/15333

sets/global-b67dd1bd4e6047ea.css" /> Add missing attributes to json/decoder.pyi JSONDecoder by b9788213 · Pull Request #15333 · python/typeshed · GitHub
Skip to content

Add missing attributes to json/decoder.pyi JSONDecoder#15333

Open
b9788213 wants to merge 4 commits intopython:mainfrom
b9788213:add-missing-attrs
Open

Add missing attributes to json/decoder.pyi JSONDecoder#15333
b9788213 wants to merge 4 commits intopython:mainfrom
b9788213:add-missing-attrs

Conversation

@b9788213
Copy link
Contributor

@b9788213 b9788213 commented Jan 28, 2026

self.parse_object = JSONObject
self.parse_array = JSONArray
self.parse_string = scanstring
self.memo = {}
parse_object: Callable[..., Any]
parse_array: Callable[..., Any]
parse_string: Callable[..., Any]
memo: dict[Any, Any]

Added missing attributes to json/decoder.pyi JSONDecoder class.

@github-actions

This comment has been minimized.

Comment on lines +21 to +24
parse_object: Callable[..., Any]
parse_array: Callable[..., Any]
parse_string: Callable[..., Any]
memo: dict[Any, Any]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, but we should add the actual arguments and return types here. Same for the actual types in the memo dict. Alternatively, we could use Incomplete (from _typeshed) as a marker for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a good way to tell they are the same thing, or have we copy the signature of the functions

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think copying the signature is fine where that makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

JSONArray and JSONObject wasnt exits so i tried implenting it but its so complex

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy