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

mandos.search.meta   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A MetaSearch.__init__() 0 4 1
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