Skip to content

Commit

Permalink
cls_rule: use FrozenSet as typing hint
Browse files Browse the repository at this point in the history
as only python 3.9 and up support the
frozenset class usage

Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Sep 3, 2024
1 parent 1af24be commit bbcd501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oelint_adv/cls_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import pkgutil
import sys
from typing import Iterable, List, Tuple
from typing import FrozenSet, Iterable, List, Tuple

from colorama import Style
from oelint_parser.cls_stash import Stash
Expand Down Expand Up @@ -44,9 +44,9 @@ def __init__(self,
self._valid_till_release = valid_till_release
self._valid_from_release = valid_from_release
self._state: State = None
self.__matrix: frozenset[str] = []
self.__matrix: FrozenSet[str] = []

def set_product_matrix(self, in_: frozenset[str]) -> None:
def set_product_matrix(self, in_: FrozenSet[str]) -> None:
"""Set the product matrix
Args:
Expand Down

0 comments on commit bbcd501

Please sign in to comment.