diff options
| author | Ryu JuHeon <[email protected]> | 2021-07-21 15:45:21 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-21 02:45:21 -0400 |
| commit | 0faf4c8e2b0ad2b539c2e47eb46acb6dea003865 (patch) | |
| tree | f9d02f6f4c28280b72a01964f2e46b2e35d7c594 /discord | |
| parent | Add PartialMessage to list of allowed message reference types (diff) | |
| download | discord.py-0faf4c8e2b0ad2b539c2e47eb46acb6dea003865.tar.xz discord.py-0faf4c8e2b0ad2b539c2e47eb46acb6dea003865.zip | |
Stricter type hint in releaselevel
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/__init__.py b/discord/__init__.py index 5b4419ee..2a90f292 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -18,7 +18,7 @@ __version__ = '2.0.0a' __path__ = __import__('pkgutil').extend_path(__path__, __name__) import logging -from typing import NamedTuple +from typing import NamedTuple, Literal from .client import * from .appinfo import * @@ -64,7 +64,7 @@ class VersionInfo(NamedTuple): major: int minor: int micro: int - releaselevel: str + releaselevel: Literal["alpha", "beta", "candidate", "final"] serial: int version_info = VersionInfo(major=2, minor=0, micro=0, releaselevel='alpha', serial=0) |