Skip to content

Commit 1f82aca

Browse files
committed
fixed failing tests
1 parent 976433a commit 1f82aca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ellar/testing/module.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ def _analyze_and_resolve_controller_dependencies(
270270
# For each dependency, find the providing module
271271
for dep_type in dependencies:
272272
# Handle tagged dependencies (InjectByTag)
273-
if isinstance(dep_type, t.NewType):
273+
# NewType creates callables with __supertype__ attribute
274+
if hasattr(dep_type, "__supertype__"):
274275
resolved_type = app_analyzer.get_type_from_tag(dep_type)
275276
if not resolved_type:
276277
continue

0 commit comments

Comments
 (0)