Skip to content

Commit c986e00

Browse files
fitzprromanlutz
andauthored
Apply suggestion from @romanlutz
Co-authored-by: Roman Lutz <romanlutz13@gmail.com>
1 parent 996a13b commit c986e00

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyrit/prompt_target/common/prompt_target.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ def output_modality_supported(self, modalities: "set[PromptDataType]") -> bool:
189189
bool: True if the exact combination is supported, False otherwise.
190190
"""
191191
modality_frozenset = frozenset(modalities)
192-
supported_modalities = self.SUPPORTED_OUTPUT_MODALITIES # Works with both class attr and property
193-
return modality_frozenset in supported_modalities
192+
return modality_frozenset in self.SUPPORTED_OUTPUT_MODALITIES
194193

195194
def supports_multimodal_input(self) -> bool:
196195
"""

0 commit comments

Comments
 (0)