Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed May 6, 2024
1 parent a58fe4a commit c1e00f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rose/rule_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import click

from rose.common import RoseError, RoseExpectedError
from rose.common import RoseError, RoseExpectedError, uniq

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -293,10 +293,10 @@ def __str__(self) -> str:
return r

def __init__(self, tags: Sequence[ExpandableTag], pattern: MatcherPattern) -> None:
_tags: set[Tag] = set()
_tags: list[Tag] = []
for t in tags:
_tags.update(ALL_TAGS[t])
self.tags = list(_tags)
_tags.extend(ALL_TAGS[t])
self.tags = uniq(_tags)
self.pattern = pattern

@classmethod
Expand Down Expand Up @@ -392,10 +392,10 @@ def __init__(
pattern: MatcherPattern | None = None,
) -> None:
self.behavior = behavior
_tags: set[Tag] = set()
_tags: list[Tag] = []
for t in tags:
_tags.update(ALL_TAGS[t])
self.tags = list(_tags)
_tags.extend(ALL_TAGS[t])
self.tags = uniq(_tags)
self.pattern = pattern

def __str__(self) -> str:
Expand Down

0 comments on commit c1e00f1

Please sign in to comment.