From 05284ec2f81b029aa16dbeb9487b3112319e4546 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 20 Mar 2023 13:57:07 +0000 Subject: [PATCH] fix(select): fix type annotation --- nvitop/select.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvitop/select.py b/nvitop/select.py index 5a62a58..6c37d2a 100644 --- a/nvitop/select.py +++ b/nvitop/select.py @@ -79,7 +79,7 @@ TTY = sys.stdout.isatty() def select_devices( # pylint: disable=too-many-branches,too-many-statements,too-many-locals,unused-argument - devices: Iterable[Device] = None, + devices: Iterable[Device] | None = None, *, format: str = 'index', # pylint: disable=redefined-builtin force_index: bool = False,