From: Kefu Chai Date: Sat, 5 Jun 2021 03:53:03 +0000 (+0800) Subject: pybind/ceph_daemon: correct type annotation of admin_socket() X-Git-Tag: v17.1.0~1729^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9121d5f711a234c793583c6bfd82aa0a0709e226;p=ceph.git pybind/ceph_daemon: correct type annotation of admin_socket() we always pass a list of string to it, but since it does not assume the container type of string, just specify Sequence[str]. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index 6c87ecc2078..6ad16f4eb30 100644 --- a/src/pybind/ceph_daemon.py +++ b/src/pybind/ceph_daemon.py @@ -31,7 +31,7 @@ READ_CHUNK_SIZE = 4096 def admin_socket(asok_path: str, - cmd: str, + cmd: Sequence[str], format: Optional[str] = '') -> bytes: """ Send a daemon (--admin-daemon) command 'cmd'. asok_path is the