Skip to content

Commit 3de91df

Browse files
fix: if NameError is raised in type checking, it is largely due to the workaround for circular imports
1 parent 28f83ff commit 3de91df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

py_spring/core/application/context/application_context_type_checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ def check_type_hints_for_context(self, ctx: ApplicationContext) -> None:
2727
try:
2828
check_type_hints_for_class(_cls, skip_attrs=self.skip_class_attrs)
2929
except TypeHintError as error:
30-
logger.warning(f"Type hint error for class {_cls.__name__}: {error}")
30+
logger.warning(f"Type hint error for class {_cls.__name__}: {error}")
31+
except NameError as error:
32+
...

0 commit comments

Comments
 (0)