Passed
Push — main ( 22be6c...75f564 )
by Yohann
01:28
created

pincer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 25
dl 0
loc 43
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A VersionInfo.__repr__() 0 3 1
1
"""
2
Pincer library
3
====================
4
An asynchronous python API wrapper meant to replace discord.py
5
6
Copyright Pincer 2021
7
Full MIT License can be found in `LICENSE` at the project root.
8
"""
9
10
from typing import NamedTuple, Literal
0 ignored issues
show
Bug introduced by
The name Literal does not seem to exist in module typing.
Loading history...
11
12
from pincer.client import Client, Bot
13
from pincer.commands import command
0 ignored issues
show
introduced by
Cannot import 'pincer.commands' due to syntax error 'invalid syntax (<unknown>, line 82)'
Loading history...
Bug introduced by
The name commands does not seem to exist in module pincer.
Loading history...
14
from pincer.objects import Intents
15
16
__package__ = "pincer"
17
__title__ = "Pincer library"
18
__description__ = "Discord API wrapper rebuild from scratch."
19
__author__ = "Sigmanificient, Arthurdw"
20
__email__ = "[email protected]"
21
__license__ = "MIT"
22
23
24
class VersionInfo(NamedTuple):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
25
    major: int
26
    minor: int
27
    micro: int
28
    release_level: Literal["alpha", "beta", "candidate", "final", "dev"]
29
    serial: int
30
31
    def __repr__(self) -> str:
32
        return (
33
            f'{self.major}.{self.minor}.{self.micro}'
34
            f'-{self.release_level}{self.serial}'
35
        )
36
37
38
__version__ = VersionInfo(0, 6, 11, 'dev', 0)
39
__all__ = (
40
    "__version__", "__title__", "__package__",
41
    "__author__", "__email__",
42
    "Client", "Bot", "command", "Intents"
43
)
44