From 3f9fac49e12a1606e53eb3be6896f04969ba4038 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 28 Nov 2024 13:13:59 +0100 Subject: [PATCH] satisfy typing --- traitlets/utils/bunch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/traitlets/utils/bunch.py b/traitlets/utils/bunch.py index 045dc88d..b1eb6c28 100644 --- a/traitlets/utils/bunch.py +++ b/traitlets/utils/bunch.py @@ -23,6 +23,7 @@ def __setattr__(self, key: str, value: Any) -> None: self.__setitem__(key, value) def __dir__(self) -> list[str]: - names = super().__dir__() + names: list[str] = [] + names.extend(super().__dir__()) names.extend(self.keys()) return names