Skip to content

Commit 7e92ece

Browse files
committed
Make Location dataclass immutable
1 parent 5589eae commit 7e92ece

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tempren/primitives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __str__(self) -> str:
7575
return f"{self.name}"
7676

7777

78-
@dataclass
78+
@dataclass(frozen=True)
7979
class Location:
8080
line: int
8181
column: int

0 commit comments

Comments
 (0)