From a926e6769d7a599155019bb03fef91f6777a14a0 Mon Sep 17 00:00:00 2001 From: Lucas Wilkinson Date: Wed, 31 Jul 2024 19:50:08 +0000 Subject: [PATCH] freeze dataclass to better mirror the readonly nature of the C++ version of the class --- vllm/_core_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/_core_ext.py b/vllm/_core_ext.py index 7829050c1027d..e3b9fbb938915 100644 --- a/vllm/_core_ext.py +++ b/vllm/_core_ext.py @@ -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