@@ -158,7 +158,7 @@ def _attr_inline_rule(
158
158
silent : bool ,
159
159
after : Sequence [str ],
160
160
* ,
161
- allowed_attributes : set [str ] | None = None ,
161
+ allowed : set [str ] | None = None ,
162
162
) -> bool :
163
163
if state .pending or not state .tokens :
164
164
return False
@@ -177,7 +177,7 @@ def _attr_inline_rule(
177
177
attr_token = state .tokens [token_index ]
178
178
if "class" in attrs and "class" in token .attrs :
179
179
attrs ["class" ] = f"{ token .attrs ['class' ]} { attrs ['class' ]} "
180
- _add_attrs (attr_token , attrs , allowed_attributes )
180
+ _add_attrs (attr_token , attrs , allowed )
181
181
return True
182
182
183
183
@@ -229,9 +229,7 @@ def _attr_block_rule(
229
229
return True
230
230
231
231
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 :
235
233
"""Find attribute block then move its attributes to the next block."""
236
234
i = 0
237
235
len_tokens = len (state .tokens )
@@ -255,7 +253,7 @@ def _attr_resolve_block_rule(
255
253
if key == "class" or key not in next_token .attrs :
256
254
next_token .attrs [key ] = value
257
255
else :
258
- _add_attrs (next_token , state .tokens [i ].attrs , allowed_attributes )
256
+ _add_attrs (next_token , state .tokens [i ].attrs , allowed )
259
257
260
258
state .tokens .pop (i )
261
259
len_tokens -= 1
0 commit comments