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

SUPPORTED_LANGUAGE.get_default()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from candv import Constants
2
from candv import SimpleConstant
3
from candv import with_constant_class
4
5
from ._utils import export
6
7
8
@export
9
class SupportedLanguageConstant(SimpleConstant):
10
  ...
11
12
13
@export
14
class SUPPORTED_LANGUAGE(with_constant_class(SupportedLanguageConstant), Constants):
15
  EN = SupportedLanguageConstant()
16
  RU = SupportedLanguageConstant()
17
18
  @classmethod
19
  def get_default(cls):
20
    return cls.EN
21