Showing 2 of 2 total issues
Function flatten
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
Open
def flatten( obj: Any, flatten_dicts_by_values: bool = True, coerce: Optional[Callable[[T], M]] = None) -> Iterable[M]: """Flatten an arbitrarily complex object.
- Read upRead up
Function yield_file_paths
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
def yield_file_paths( dir_path: Path, allowed_file_extensions: Collection[str], recursively: bool = False) -> Iterable[Path]: """Yield file paths.
- Read upRead up