-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Summary of Changes #27 didn't fix the issue that the generated docs contained warnings: ![image](https://user-images.githubusercontent.com/2501322/225864712-7d876a6e-bb89-4427-af5b-0bd98d3bc0ad.png) This PR also sets the log level of the root logger to `ERROR`.
- Loading branch information
1 parent
5c90612
commit 53fc7ec
Showing
3 changed files
with
41 additions
and
102 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import logging | ||
import warnings | ||
|
||
|
||
def disable_warnings() -> None: | ||
"""Disable output of warnings.""" | ||
|
||
logging.root.setLevel(logging.ERROR) | ||
warnings.filterwarnings("ignore") |
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