Skip to content

Commit

Permalink
Use typing.Pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 19, 2024
1 parent cd93562 commit ca02f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netkan/netkan/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import re
import logging
from typing import Iterable, Type, Optional
from typing import Iterable, Type, Optional, Pattern
from types import TracebackType
import discord

Expand All @@ -21,7 +21,7 @@ def catch_all(type_: Type[BaseException], value: BaseException, traceback: Optio
class DiscordLogHandler(logging.Handler):

def __init__(self, webhook_id: str, webhook_token: str,
logger_filter: re.Pattern) -> None:
logger_filter: Pattern) -> None:
super().__init__()
self.webhook = discord.Webhook.partial(webhook_id, webhook_token,
adapter=discord.RequestsWebhookAdapter())
Expand Down

0 comments on commit ca02f6b

Please sign in to comment.