Passed
Push — main ( 3a0c28...4b9dc0 )
by Douglas
01:51
created

mandos.search.meta.MetaSearch.__init__()   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
import abc
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
from random import Random
3
from typing import TypeVar
4
5
from mandos.model.hits import AbstractHit
6
from mandos.model.searches import Search
7
8
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...
9
10
11
class MetaSearch(Search[H], metaclass=abc.ABCMeta):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
12
    def __init__(self, key: str, seed: int):
13
        self.seed = seed
14
        self.random = Random(seed)
15
        super().__init__(key)
16
17
18
__all__ = ["MetaSearch"]
19