commons.supported_languages   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 15
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SUPPORTED_LANGUAGES.get_default() 0 3 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_LANGUAGES(with_constant_class(SupportedLanguageConstant), Constants):
15
  EN = SupportedLanguageConstant()
16
  RU = SupportedLanguageConstant()
17
18
  @classmethod
19
  def get_default(cls):
20
    return cls.EN
21