@@ -158,7 +158,7 @@ def _attr_inline_rule(
158158 silent : bool ,
159159 after : Sequence [str ],
160160 * ,
161- allowed_attributes : set [str ] | None = None ,
161+ allowed : set [str ] | None = None ,
162162) -> bool :
163163 if state .pending or not state .tokens :
164164 return False
@@ -177,7 +177,7 @@ def _attr_inline_rule(
177177 attr_token = state .tokens [token_index ]
178178 if "class" in attrs and "class" in token .attrs :
179179 attrs ["class" ] = f"{ token .attrs ['class' ]} { attrs ['class' ]} "
180- _add_attrs (attr_token , attrs , allowed_attributes )
180+ _add_attrs (attr_token , attrs , allowed )
181181 return True
182182
183183
@@ -229,9 +229,7 @@ def _attr_block_rule(
229229 return True
230230
231231
232- def _attr_resolve_block_rule (
233- state : StateCore , * , allowed_attributes : set [str ] | None
234- ) -> None :
232+ def _attr_resolve_block_rule (state : StateCore , * , allowed : set [str ] | None ) -> None :
235233 """Find attribute block then move its attributes to the next block."""
236234 i = 0
237235 len_tokens = len (state .tokens )
@@ -255,7 +253,7 @@ def _attr_resolve_block_rule(
255253 if key == "class" or key not in next_token .attrs :
256254 next_token .attrs [key ] = value
257255 else :
258- _add_attrs (next_token , state .tokens [i ].attrs , allowed_attributes )
256+ _add_attrs (next_token , state .tokens [i ].attrs , allowed )
259257
260258 state .tokens .pop (i )
261259 len_tokens -= 1
0 commit comments