Skip to content

Commit

Permalink
freeze dataclass to better mirror the readonly nature of the C++ vers…
Browse files Browse the repository at this point in the history
…ion of the class
  • Loading branch information
LucasWilkinson committed Aug 2, 2024
1 parent d6ac240 commit 36ee4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/_core_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class NanRepr(Enum):

from dataclasses import dataclass

@dataclass
@dataclass(frozen=True)
class ScalarType:
"""
ScalarType can represent a wide range of floating point and integer
Expand Down

0 comments on commit 36ee4f4

Please sign in to comment.