Passed
Push — master ( 8fdecd...f93fb5 )
by Oleksandr
01:11
created

commons.spatial.Point3D.__repr__()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nop 1
crap 2
1 1
from dataclasses import dataclass
2
3
from .structures import PrimitiveDataclassMixin
4 1
5 1
from ._utils import export
6
7 1
8 1
@export
9 1
@dataclass(frozen=True)
10
class Point2D(PrimitiveDataclassMixin):
11
  __slots__ = ["x", "y", ]
12
13
  x: float
14
  y: float
15 1
16 1
17
@export
18 1
@dataclass(frozen=True)
19 1
class Point3D(PrimitiveDataclassMixin):
20 1
  __slots__ = ["x", "y", "z", ]
21 1
22
  x: float
23
  y: float
24
  z: float
25