test: annotate crew_instance to guide static analyzer

This commit is contained in:
Renato Nitta
2026-04-20 19:31:50 -03:00
parent 0b92d2f69c
commit a76cef6af9

View File

@@ -263,8 +263,7 @@ def test_crew_name():
def test_crew_decorator_propagates_class_name_to_instance():
"""@crew-decorated factory method should set Crew.name to the decorated class name."""
crew = InternalCrew()
crew_instance = crew.crew()
crew_instance: Crew = InternalCrew().crew()
assert crew_instance.name == "InternalCrew"