diff options
| author | Cody Logan <cody@lokken.dev> | 2023-10-20 16:36:14 -0700 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-10-20 16:41:11 -0700 |
| commit | c1820026f97eaf671c29ab30f02879de0ac4df89 (patch) | |
| tree | 4a0d9edb5301b26d9dbd22ceb307a7e3b1db4820 /src/wikiget/logging.py | |
| parent | 3d37cf6f86eb6c48a3a0a094c42ade6d7aed1daf (diff) | |
| download | wikiget-c1820026f97eaf671c29ab30f02879de0ac4df89.tar.gz wikiget-c1820026f97eaf671c29ab30f02879de0ac4df89.zip | |
Add type annotations to source files
Diffstat (limited to 'src/wikiget/logging.py')
| -rw-r--r-- | src/wikiget/logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wikiget/logging.py b/src/wikiget/logging.py index 1536156..87b917c 100644 --- a/src/wikiget/logging.py +++ b/src/wikiget/logging.py @@ -16,6 +16,7 @@ # along with Wikiget. If not, see <https://www.gnu.org/licenses/>. import logging +from argparse import Namespace import wikiget @@ -25,7 +26,7 @@ class FileLogAdapter(logging.LoggerAdapter): return f"[{self.extra['filename']}] {msg}", kwargs -def configure_logging(args): +def configure_logging(args: Namespace) -> None: loglevel = logging.WARNING if args.verbose >= wikiget.VERY_VERBOSE: # this includes API and library messages |
