chrislit/abydos

View on GitHub
abydos/distance/_bag.py

Summary

Maintainability
A
0 mins
Test Coverage

Unnecessary elif after return
Open

        if tar == src:
Severity: Info
Found in abydos/distance/_bag.py by pylint

Used in order to highlight an unnecessary block of code following an if containing a return statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a return statement.

Parameters differ from overridden 'dist_abs' method
Open

    def dist_abs(self, src: str, tar: str, normalized: bool = False) -> float:
Severity: Minor
Found in abydos/distance/_bag.py by pylint

Used when a method has a different number of arguments than in the implemented interface or in an overridden method.

Wrong hanging indentation before block (add 4 spaces).
Open

        self,
Severity: Info
Found in abydos/distance/_bag.py by pylint

TODO self, ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        intersection_type: str = 'crisp',
Severity: Info
Found in abydos/distance/_bag.py by pylint

TODO intersection_type: str = 'crisp', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        **kwargs: Any
Severity: Info
Found in abydos/distance/_bag.py by pylint

TODO **kwargs: Any ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

        tokenizer: Optional[_Tokenizer] = None,
Severity: Info
Found in abydos/distance/_bag.py by pylint

TODO tokenizer: Optional[_Tokenizer] = None, ^ |

There are no issues that match your filters.

Category
Status