Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 191c737

Browse files
committed
feat: add version_info
1 parent bb419c8 commit 191c737

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

discatcore/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,33 @@
55
__version__ = "0.1.0"
66
__license__ = "MIT"
77

8+
from typing import Literal, NamedTuple
9+
810
from . import gateway, http, types, utils
911
from .errors import *
1012
from .file import *
1113
from .impl import *
1214

15+
16+
class VersionInfo(NamedTuple):
17+
major: int
18+
minor: int
19+
patch: int
20+
release_level: Literal["alpha", "beta", "release candidate", "final"]
21+
build_metadata: int
22+
23+
24+
version_info: VersionInfo = VersionInfo(
25+
major=0, minor=1, patch=0, release_level="alpha", build_metadata=0
26+
)
27+
1328
__all__ = (
1429
"gateway",
1530
"http",
1631
"types",
1732
"utils",
33+
"VersionInfo",
34+
"version_info",
1835
)
1936
__all__ += errors.__all__
2037
__all__ += file.__all__

0 commit comments

Comments
 (0)