Passed
Push — dependabot/pip/coverage-5.5 ( cc6ddb )
by
unknown
03:48
created

mandos.model.pubchem_support._nav_model   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A FilterFn.__call__() 0 2 1
1
from __future__ import annotations
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
from dataclasses import dataclass
3
from typing import Callable, Any
4
5
6
@dataclass(frozen=True)
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
7
class FilterFn:
8
    keep_if: Callable[[Any], bool]
9
10
    def __call__(self, *args, **kwargs):
11
        return self.keep_if(*args, **kwargs)
12
13
14
__all__ = ["FilterFn"]
15