@@ -48,7 +48,7 @@ class Node:
4848 .. automethod:: serialize
4949
5050 """
51- __slots__ = ['source_line ' , 'source_column ' ]
51+ __slots__ = ['source_column ' , 'source_line ' ]
5252
5353 def __init__ (self , source_line , source_column ):
5454 self .source_line = source_line
@@ -234,7 +234,7 @@ class IdentToken(Node):
234234 This is the value to use when comparing to a CSS keyword.
235235
236236 """
237- __slots__ = ['value ' , 'lower_value ' ]
237+ __slots__ = ['lower_value ' , 'value ' ]
238238 type = 'ident'
239239 repr_format = '<{self.__class__.__name__} {self.value}>'
240240
@@ -274,7 +274,7 @@ class AtKeywordToken(Node):
274274 if node.type == 'at-keyword' and node.lower_value == 'import':
275275
276276 """
277- __slots__ = ['value ' , 'lower_value ' ]
277+ __slots__ = ['lower_value ' , 'value ' ]
278278 type = 'at-keyword'
279279 repr_format = '<{self.__class__.__name__} @{self.value}>'
280280
@@ -311,7 +311,7 @@ class HashToken(Node):
311311 (Only such hash tokens are valid ID selectors.)
312312
313313 """
314- __slots__ = ['value ' , 'is_identifier ' ]
314+ __slots__ = ['is_identifier ' , 'value ' ]
315315 type = 'hash'
316316 repr_format = '<{self.__class__.__name__} #{self.value}>'
317317
@@ -342,7 +342,7 @@ class StringToken(Node):
342342 The unescaped value, as a Unicode string, without the quotes.
343343
344344 """
345- __slots__ = ['value ' , 'representation ' ]
345+ __slots__ = ['representation ' , 'value ' ]
346346 type = 'string'
347347 repr_format = '<{self.__class__.__name__} {self.representation}>'
348348
@@ -370,7 +370,7 @@ class URLToken(Node):
370370 markers.
371371
372372 """
373- __slots__ = ['value ' , 'representation ' ]
373+ __slots__ = ['representation ' , 'value ' ]
374374 type = 'url'
375375 repr_format = '<{self.__class__.__name__} {self.representation}>'
376376
@@ -398,7 +398,7 @@ class UnicodeRangeToken(Node):
398398 Same as :attr:`start` if the source only specified one value.
399399
400400 """
401- __slots__ = ['start ' , 'end ' ]
401+ __slots__ = ['end ' , 'start ' ]
402402 type = 'unicode-range'
403403 repr_format = '<{self.__class__.__name__} {self.start} {self.end}>'
404404
@@ -437,7 +437,7 @@ class NumberToken(Node):
437437 The CSS representation of the value, as a Unicode string.
438438
439439 """
440- __slots__ = ['value ' , 'int_value ' , 'is_integer ' , 'representation ' ]
440+ __slots__ = ['int_value ' , 'is_integer ' , 'representation ' , 'value ' ]
441441 type = 'number'
442442 repr_format = '<{self.__class__.__name__} {self.representation}>'
443443
@@ -481,7 +481,7 @@ class PercentageToken(Node):
481481 as a Unicode string.
482482
483483 """
484- __slots__ = ['value ' , 'int_value ' , 'is_integer ' , 'representation ' ]
484+ __slots__ = ['int_value ' , 'is_integer ' , 'representation ' , 'value ' ]
485485 type = 'percentage'
486486 repr_format = '<{self.__class__.__name__} {self.representation}%>'
487487
@@ -540,8 +540,14 @@ class DimensionToken(Node):
540540 if node.type == 'dimension' and node.lower_unit == 'px':
541541
542542 """
543- __slots__ = ['value' , 'int_value' , 'is_integer' , 'representation' ,
544- 'unit' , 'lower_unit' ]
543+ __slots__ = [
544+ 'int_value' ,
545+ 'is_integer' ,
546+ 'lower_unit' ,
547+ 'representation' ,
548+ 'unit' ,
549+ 'value' ,
550+ ]
545551 type = 'dimension'
546552 repr_format = ('<{self.__class__.__name__} '
547553 '{self.representation}{self.unit}>' )
@@ -680,7 +686,7 @@ class FunctionBlock(Node):
680686 in the list.
681687
682688 """
683- __slots__ = ['name ' , 'lower_name' , 'arguments ' ]
689+ __slots__ = ['arguments ' , 'lower_name' , 'name ' ]
684690 type = 'function'
685691 repr_format = '<{self.__class__.__name__} {self.name}( … )>'
686692
@@ -743,7 +749,7 @@ class Declaration(Node):
743749 this flag, such as non-property descriptor declarations.
744750
745751 """
746- __slots__ = ['name ' , 'lower_name' , 'value ' , 'important ' ]
752+ __slots__ = ['important ' , 'lower_name' , 'name ' , 'value ' ]
747753 type = 'declaration'
748754 repr_format = '<{self.__class__.__name__} {self.name}: …>'
749755
@@ -788,7 +794,7 @@ class QualifiedRule(Node):
788794 as a list of :term:`component values`.
789795
790796 """
791- __slots__ = ['prelude ' , 'content ' ]
797+ __slots__ = ['content ' , 'prelude ' ]
792798 type = 'qualified-rule'
793799 repr_format = ('<{self.__class__.__name__} '
794800 '… {{ … }}>' )
@@ -849,7 +855,7 @@ class AtRule(Node):
849855 or :obj:`None` for at-rules ending with a semicolon.
850856
851857 """
852- __slots__ = ['at_keyword' , 'lower_at_keyword ' , 'prelude ' , 'content ' ]
858+ __slots__ = ['at_keyword' , 'content ' , 'lower_at_keyword ' , 'prelude ' ]
853859 type = 'at-rule'
854860 repr_format = ('<{self.__class__.__name__} '
855861 '@{self.at_keyword} … {{ … }}>' )
0 commit comments