Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 3, 2024
1 parent fc5e4c1 commit 49fa7fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mdit_py_plugins/attrs/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ def _attr_inline_rule(state: StateInline, silent: bool) -> bool:
try:
new_pos, attrs = parse(state.src[state.pos :])
if allowed_attributes:
attrs = {
k: v
for k, v in attrs.items()
if k not in allowed_attributes
}
attrs = {k: v for k, v in attrs.items() if k not in allowed_attributes}
if attrs:
raise NotAllowedAttributesError(
f"These attributes are not allowed {attrs}"
Expand Down

0 comments on commit 49fa7fb

Please sign in to comment.