"""
This type stub file was generated by pyright.
"""

from typing import Dict, Generic, List, Tuple, TypeVar

"""
This type stub file was generated by pyright.
"""
T = TypeVar("T")
class Matrix(Generic[T], Dict[Tuple[int, int], T]):
    """This is a dictionary based sparse matrix class"""
    def __init__(self, rows: List[int], cols: List[int]) -> None:
        """initialises the class by creating a matrix that will have the given
        rows and columns
        """
        ...
    
    def add(self, row: int, col: int, item: T, colcheck: bool = ..., rowcheck: bool = ...) -> None:
        ...
    
    def addcol(self, col: int, rowitems: Dict[int, T]) -> None:
        """adds a column"""
        ...
    
    def get(self, coords: Tuple[int, int], default: T = ...) -> T:
        ...
    
    def col_based_arrays(self) -> Tuple[int, List[int], List[int], List[int], List[T]]:
        ...
    


