[Misc] Fix mypy error in parser_manager type narrowing (#42441)

Signed-off-by: Sarah-Salah <11881117+Sarah-Salah@users.noreply.github.com>
This commit is contained in:
Sarah Salah
2026-05-14 02:48:59 +00:00
committed by GitHub
parent ca60a4e84f
commit bf0d2dc6d7
+1 -1
View File
@@ -158,7 +158,7 @@ class ParserManager:
if isinstance(name, str):
names = [name]
elif is_list_of(name, str):
elif name is not None and is_list_of(name, str):
names = name
else:
names = [class_name]