We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
values.Formatter
1 parent b930beb commit 27d21caCopy full SHA for 27d21ca
src/csspring/values.py
@@ -175,7 +175,7 @@ def _(self, production: RepetitionProduction) -> Iterable[str]:
175
@format.register
176
def _(self, production: TokenProduction) -> Iterable[str]:
177
if production.attributes:
178
- if 'value' not in production.attributes or len(production.attributes) > 1:
+ if production.attributes.keys() != { 'value' }:
179
raise NotImplementedError # the "Values and Units" specification doesn't feature token productions with matching of attributes other than `value`
180
yield repr(production.attributes['value'])
181
else:
0 commit comments