abydos/distance/_q_gram.py
Consider using dict.get for getting values from a dict if a key is present or a default if not Open
Open
if 'qval' in kwargs:
- Read upRead up
- Exclude checks
Using the builtin dict.get for getting a value from a dictionary if a key is present or a default if not, is simpler and considered more idiomatic, although sometimes a bit slower
Wrong hanging indentation before block (add 4 spaces). Open
Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
Open
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Variable name c
doesn't conform to snake_case naming style Open
Open
c = self._tar_only_card()
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name b
doesn't conform to snake_case naming style Open
Open
b = self._src_only_card()
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Wrong hanging indentation before block (add 4 spaces). Open
Open
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
Open
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |