durandtibo/redcat

View on GitHub
src/redcat/batchdict.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

File batchdict.py has 589 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

r"""Contain the implementation of the ``BatchDict``."""

from __future__ import annotations

__all__ = ["BatchDict", "check_same_batch_size", "check_same_keys", "get_seq_lens"]
Severity: Major
Found in src/redcat/batchdict.py - About 1 day to fix

    BatchDict has 37 functions (exceeds 20 allowed). Consider refactoring.
    Wontfix

    class BatchDict(BaseBatch[dict[Hashable, TBaseBatch]]):
        r"""Implement a batch object to represent a dictionary of batches.
    
        Args:
            data: Specifies the dictionary of batches.
    Severity: Minor
    Found in src/redcat/batchdict.py - About 4 hrs to fix

      There are no issues that match your filters.

      Category
      Status