Skip to content

Commit 8a611ff

Browse files
Type hint Bot token optional
1 parent 0bce957 commit 8a611ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import os
22
from dotenv import load_dotenv
3-
from typing import NoReturn
3+
from typing import NoReturn, Optional
44

55
load_dotenv()
66

77
class Config:
88
"""Configurations"""
99

10-
BOT_TOKEN: str = os.getenv('BOT_TOKEN')
10+
BOT_TOKEN: Optional[str] = os.getenv('BOT_TOKEN')
1111

1212
GUILD_ID: int = 1184345962412507157
1313
RULE_CHANNEL_ID: int = 1184494394682916954

0 commit comments

Comments
 (0)