-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add typing information. This change takes a stab at adding typing information to the module, in order to address #issue65. Ideally we'd use the same typing as the builtin json module. But, the json module has no typing information, so I've rolled my own recursive type in `json5.ObjectType`, and the `dump` routines take that type as input for the `obj` parameter. Note that due to the multiple hooks the library provides, I can't actually say much about what the `load` routines return and have to use `Any`. * Update to address review feedback. This updates the PR with the feedback from richardxia@. Notably, this switches from ObjectType to any, and removes the incorrect `Optional[bool]`. * remove missed `ObjectType` reference * add py.typed
- Loading branch information
Showing
2 changed files
with
90 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.