Skip to content

Commit 2068de0

Browse files
committed
we dont use union in here
1 parent 8a199c1 commit 2068de0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

constants/_meta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"""
2323
from __future__ import annotations
2424

25-
from typing import TYPE_CHECKING, Any, NoReturn, cast, Union
25+
from typing import TYPE_CHECKING, Any, NoReturn, cast
2626

2727
import toml
2828

@@ -42,7 +42,7 @@ def __new__(mcs, name: str, bases: tuple[type, ...], attrs: dict[str, Any]) -> S
4242
return super().__new__(mcs, name, bases, attrs)
4343

4444
try:
45-
section = cast(Union["Tokens", "Database", "Logging"], _config[name.upper()])
45+
section = cast("Tokens | Database | Logging", _config[name.upper()])
4646
except KeyError:
4747
return super().__new__(mcs, name, bases, attrs)
4848

0 commit comments

Comments
 (0)