We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 361f6a3 commit e938a96Copy full SHA for e938a96
src/black/mode.py
@@ -214,7 +214,7 @@ class Feature(Enum):
214
215
def supports_feature(target_versions: set[TargetVersion], feature: Feature) -> bool:
216
if not target_versions:
217
- raise ValueError("target_versions must not be empty")
+ raise ValueError("At least one target Python version must be specified.")
218
219
return all(feature in VERSION_TO_FEATURES[version] for version in target_versions)
220
0 commit comments