Passed
Push — master ( 0fb205...8fdecd )
by Oleksandr
56s
created

commons.skills   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 15
dl 0
loc 20
rs 10
c 0
b 0
f 0
1
from candv import Values
2
from candv import VerboseValueConstant
3
from candv import with_constant_class
4
5
from ._translations import gettext_lazy as _
6
from ._utils import export
7
8
9
@export
10
class SkillConstant(VerboseValueConstant):
11
  ...
12
13
14
@export
15
class SKILL(with_constant_class(SkillConstant), Values):
16
  ROOKIE  = SkillConstant(0, _("rookie"))
17
  AVERAGE = SkillConstant(1, _("average"))
18
  VETERAN = SkillConstant(2, _("veteran"))
19
  ACE     = SkillConstant(3, _("ace"))
20