Skip to content

Commit e958adc

Browse files
committed
lib/pool: add type for hosts attribute in Pool
Signed-off-by: Olivier Hoareau <olivier.hoareau@vates.tech>
1 parent ee473e3 commit e958adc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, master_hostname_or_ip: HostAddress) -> None:
2626
if not master.is_master():
2727
raise NotAMasterHostError(f"Host {master_hostname_or_ip} is not a master host. Pool not created.")
2828
self.master = master
29-
self.hosts = [master]
29+
self.hosts: list[Host] = [master]
3030

3131
# wait for XAPI startup to be done, or we can get "Connection
3232
# refused (calling connect )" when calling self.hosts_uuids()

0 commit comments

Comments
 (0)