From 9121d5f711a234c793583c6bfd82aa0a0709e226 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 5 Jun 2021 11:53:03 +0800 Subject: [PATCH] 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 --- src/pybind/ceph_daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index 6c87ecc207837..6ad16f4eb308e 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 -- 2.39.5