Passed
Push — dependabot/pip/flake8-bugbear-... ( 5c5892...6076c0 )
by
unknown
01:34
created

mandos.search.chembl.ChemblSearch.data_source()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
from typing import TypeVar
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
import abc
3
from dataclasses import dataclass
4
5
from mandos.model.chembl_api import ChemblApi
6
from mandos.model.taxonomy import Taxonomy
7
from mandos.model.searches import Search
8
from mandos.model.hits import AbstractHit
9
10
11
H = TypeVar("H", bound=AbstractHit, covariant=True)
0 ignored issues
show
Coding Style Naming introduced by
Class name "H" doesn't conform to PascalCase naming style ('[^\\W\\da-z][^\\W_]+$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
12
13
14
@dataclass(frozen=True, order=True, repr=True)
0 ignored issues
show
Documentation introduced by
Empty class docstring
Loading history...
15
class ChemblHit(AbstractHit, metaclass=abc.ABCMeta):
16
    """"""
17
18
19
class ChemblSearch(Search[H], metaclass=abc.ABCMeta):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
20
    def __init__(self, key: str, api: ChemblApi):
21
        """
22
        Constructor.
23
24
        Args:
25
            chembl_api:
26
        """
27
        super().__init__(key)
28
        self.api = api
29
30
31
__all__ = ["ChemblHit", "ChemblSearch"]
32