Passed
Push — main ( 9813db...5006f2 )
by Douglas
01:43
created

mandos.model.apis.chembl_support.DataValidityComment.resolve()   B

Complexity

Conditions 6

Size

Total Lines 16
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 15
nop 2
dl 0
loc 16
rs 8.6666
c 0
b 0
f 0
1
from __future__ import annotations
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
3
from dataclasses import dataclass
4
5
from mandos.model import CompoundNotFoundError, CompoundStruct
6
7
8
class ChemblCompoundLookupError(CompoundNotFoundError):
0 ignored issues
show
Documentation introduced by
Empty class docstring
Loading history...
9
    """ """
10
11
12
@dataclass(frozen=True, order=True, repr=True)
0 ignored issues
show
Documentation introduced by
Empty class docstring
Loading history...
13
class ChemblCompound:
14
    """ """
15
16
    chid: str
17
    inchikey: str
18
    name: str
19
    inchi: str
20
21
    @property
22
    def struct_view(self) -> CompoundStruct:
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
23
        return CompoundStruct(
24
            "chembl",
25
            self.chid,
26
            self.inchi,
27
            self.inchikey,
28
        )
29
30
31
__all__ = [
32
    "ChemblCompound",
33
    "ChemblCompoundLookupError",
34
]
35