Browse Source

Stricter type hint in releaselevel

pull/7269/head
Ryu JuHeon 4 years ago
committed by GitHub
parent
commit
0faf4c8e2b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/__init__.py

4
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)

Loading…
Cancel
Save