Skip to content

Commit

Permalink
Fix stupid equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jan 20, 2024
1 parent 0fa74c9 commit 8b296a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinycss2/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _consume_declaration_in_list(first_token, tokens, allow_nested):
break
declaration_tokens.append(token)
declaration = _parse_declaration(first_token, iter(declaration_tokens))
if not allow_nested or declaration.type == Declaration:
if not allow_nested or declaration.type == 'declaration':
return declaration
else:
tokens = chain(declaration_tokens, semicolon_token, tokens)
Expand Down

0 comments on commit 8b296a8

Please sign in to comment.