-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sphinx-build warnings and turn warnings into errors (#942)
Fix the 100+ warnings when generating docs (and make warnings errors) - Hack-fix issue with hyphenated names in TypedDict fields - Ignore several private classes in Sphinx config's nitpick_ignore list - Make several things public as they're used in public methods: * Serializable protocol * Pebble plan/layer TypesDicts (and sub-dicts), as people do build those in Python - Remove TypedDicts for charm metadata (it's not useful, as users don't build their charm metadata in Python; it's in YAML). - Remove TypedDicts for event snapshots, as IMO these don't add enough value to pay for themselves. - Replace some named types with spelled-out types for clarity, eg: _SerializedData is just Dict[str, Any]; Numerical is just Union[int, float]. - Use simpler Dict[str, Any] rather than _JsonObject (the more complex, "exact" type doesn't pay for itself). - Change EventSource and BoundEvent to non-generic classes to simplify. Part of: #920
- Loading branch information
Showing
10 changed files
with
356 additions
and
407 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ build: | |
python: "3.11" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
configuration: docs/conf.py | ||
fail_on_warning: true |
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
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
Oops, something went wrong.