From 5f8a27636e35ef5d6a75404842882057054d405d Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 3 Nov 2022 18:01:12 -0500 Subject: [PATCH] fix prev commit --- files/helpers/regex.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 4cd4b1f30..da24d7110 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -1,6 +1,5 @@ import random import re -from files.classes.user import User from typing import List, Literal, Optional, Union from .const import * from random import choice, choices @@ -142,7 +141,7 @@ def sub_matcher_profanities(match, upper=False): def sub_matcher_profanities_upper(match): return sub_matcher_profanities(match, upper=True) -def censor_slurs(body:Optional[str], logged_user:Union[Optional[User], Literal['chat']]): +def censor_slurs(body:Optional[str], logged_user): if not body: return "" def replace_re(body:str, regex:re.Pattern, regex_upper:re.Pattern, sub_func, sub_func_upper): body = regex_upper.sub(sub_func_upper, body)