diff options
| author | Arnav Jindal <[email protected]> | 2021-06-30 12:42:40 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-30 03:12:40 -0400 |
| commit | cd4b0904dbcc5b79633f09df6996c17450c6062b (patch) | |
| tree | b55469083c2e94a728d29d32c0d734a9347fb300 | |
| parent | Add View.from_message to convert message components to a View (diff) | |
| download | discord.py-cd4b0904dbcc5b79633f09df6996c17450c6062b.tar.xz discord.py-cd4b0904dbcc5b79633f09df6996c17450c6062b.zip | |
Change NamedTuple in __init__.py
| -rw-r--r-- | discord/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/discord/__init__.py b/discord/__init__.py index b2c5a078..5b4419ee 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -17,8 +17,8 @@ __version__ = '2.0.0a' __path__ = __import__('pkgutil').extend_path(__path__, __name__) -from collections import namedtuple import logging +from typing import NamedTuple from .client import * from .appinfo import * @@ -60,7 +60,12 @@ from .interactions import * from .components import * from .threads import * -VersionInfo = namedtuple('VersionInfo', 'major minor micro releaselevel serial') +class VersionInfo(NamedTuple): + major: int + minor: int + micro: int + releaselevel: str + serial: int version_info = VersionInfo(major=2, minor=0, micro=0, releaselevel='alpha', serial=0) |