Skip to content

Commit

Permalink
Compatible with python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Sep 9, 2023
1 parent 8cf5823 commit 852bb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions duetector/filters/pattern.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import re
from ast import literal_eval
from typing import List, NamedTuple, Optional, Union
from typing import List, NamedTuple, Optional, Set, Union

from duetector.extension.filter import hookimpl
from duetector.filters import Filter
Expand Down Expand Up @@ -78,7 +78,7 @@ def enable_customize_exclude(self) -> bool:
return bool(self.config.enable_customize_exclude)

@staticmethod
def _wrap_exclude_list(value: Union[str, List[str]]) -> set[str]:
def _wrap_exclude_list(value: Union[str, List[str]]) -> Set[str]:
"""
Wrap exclude list to list if it's not a list
"""
Expand Down

0 comments on commit 852bb4f

Please sign in to comment.