Hey …thanks for your response
this is the full code almost:
class AbstractConnection(ABC, Module):

    def __init__(
    self,
    source: Nodes,
    target: Nodes,
    nu: Optional[Union[float, Sequence[float]]] = None,
    reduction: Optional[callable] = None,
    weight_decay: float = 0.0,
    **kwargs
) -> None:
 
    super().__init__()



class Connection(AbstractConnection):

    def __init__(
    self,
    source: Nodes,
    target: Nodes,
    nu: Optional[Union[float, Sequence[float]]] = None,
    reduction: Optional[callable] = None,
    weight_decay: float = 0.0,
    **kwargs
) -> None:


def reset_(self) -> None:
    # language=rst
    """
    Contains resetting logic for the connection.
    """
    super().reset_()