-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For each dict that we control properly annotate the type of key and values. For JSON controlled by others (i.e. returned by API)... it's pretty hard! For the moment just annotate all of them via a generic `dict[Any, Any]'. (We can define a custom JSON type annotation as documented by <python/typing#182> but we will still have several problems and at the end we will always return Any.) All of this was pointed out via `mypy --strict .'.
- Loading branch information
Showing
1 changed file
with
22 additions
and
12 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