nptyping.types._complex   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A _Complex128Meta.__repr__() 0 2 1
1
import numpy
2
3
from nptyping.types._nptype import NPType
4
5
6
class _Complex128Meta(type):
7
    def __repr__(cls):
8
        return 'Complex128'
9
10
    __str__ = __repr__
11
12
13
class Complex128(NPType, numpy.generic, metaclass=_Complex128Meta):
14
    """
15
    Corresponds to numpy.complex128.
16
    """
17