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/files/aae4e27f491166af82aba1f66e5c3e29ed50bb8d

rimer-primitives-ef1311e26457f1ec.css" /> Add missing attributes to json/decoder.pyi JSONDecoder by b9788213 · Pull Request #15333 · python/typeshed · GitHub
Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions stdlib/json/decoder.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class JSONDecoder:
parse_constant: Callable[[str], Any]
strict: bool
object_pairs_hook: Callable[[list[tuple[str, Any]]], Any]
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

def __init__(
self,
*,
Expand Down
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