From adb2ed872ead9430d52e64b24d1a5b7c1acb0bbc Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 10 Jan 2020 16:16:26 +0100 Subject: [PATCH] pyind/mgr: add mgr_module.py and mgr_util.py to mypy Signed-off-by: Sebastian Wagner --- src/pybind/mgr/mgr_util.py | 3 +++ src/pybind/mgr/tox.ini | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/pybind/mgr/mgr_util.py b/src/pybind/mgr/mgr_util.py index 7cd598c85cba8..da9051b0aa0ce 100644 --- a/src/pybind/mgr/mgr_util.py +++ b/src/pybind/mgr/mgr_util.py @@ -98,6 +98,7 @@ def merge_dicts(*args): def get_default_addr(): + # type: () -> str def is_ipv6_enabled(): try: sock = socket.socket(socket.AF_INET6) @@ -119,6 +120,7 @@ class ServerConfigException(Exception): pass def verify_cacrt(cert_fname): + # type: (str) -> None """Basic validation of a ca cert""" if not cert_fname: @@ -139,6 +141,7 @@ def verify_cacrt(cert_fname): def verify_tls_files(cert_fname, pkey_fname): + # type: (str, str) -> None """Basic checks for TLS certificate and key files Do some validations to the private key and certificate: diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index 8d7207ad4a881..51e4e1f10fb26 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -15,6 +15,8 @@ deps = commands = mypy --config-file=../../mypy.ini \ ansible/module.py \ cephadm/module.py \ + mgr_module.py \ + mgr_util.py \ orchestrator.py \ orchestrator_cli/module.py \ rook/module.py \ -- 2.39.5