Skip to content

Commit

Permalink
Prefer dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbenito committed Dec 13, 2024
1 parent b00a132 commit 523e5b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pydvl/valuation/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@

import logging
from collections import OrderedDict
from typing import Any, NamedTuple, Sequence
from dataclasses import dataclass
from typing import Any, Sequence

import numpy as np
from numpy.typing import NDArray
Expand All @@ -55,7 +56,8 @@
logger = logging.getLogger(__name__)


class RawData(NamedTuple):
@dataclass(frozen=True)
class RawData:
x: NDArray
y: NDArray

Expand Down

0 comments on commit 523e5b8

Please sign in to comment.