fixed some warnings in data

This commit is contained in:
Oliver Hartmann 2023-01-02 13:39:52 +01:00
parent 2ef111059d
commit 749337047c

View File

@ -1,4 +1,5 @@
from enum import Enum
from typing import Union
import re
import datetime
import logging
@ -87,8 +88,8 @@ class Message():
date: datetime.datetime,
user: str,
channel: Channel,
guild: str = None,
to_from: str = None) -> None:
guild: Union[str, None] = None,
to_from: Union[str, None] = None) -> None:
self.message = message
self.date = date
self.channel = channel