File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
cmake_file_api/kinds/cache Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,17 @@ class CacheEntryType(Enum):
1717 TYPE_STATIC = "STATIC"
1818 TYPE_UNINITIALIZED = "UNINITIALIZED"
1919
20-
20+ @ dataclasses . dataclass ( slots = True , frozen = True , repr = True )
2121class CacheEntryProperty :
22- __slots__ = ("name" , "value" )
23-
24- def __init__ (self , name : str , value : str ):
25- self .name = name
26- self .value = value
22+ name : str
23+ value : str
2724
2825 @classmethod
2926 def from_dict (cls , dikt : dict [str , Any ]) -> "CacheEntryProperty" :
3027 name = dikt ["name" ]
3128 value = dikt ["value" ]
3229 return cls (name , value )
3330
34- def __repr__ (self ) -> str :
35- return "{}(name='{}', value='{}')" .format (
36- type (self ).__name__ ,
37- self .name ,
38- self .value ,
39- )
40-
4131@dataclasses .dataclass (frozen = True , slots = True )
4232class CacheEntry :
4333 name : str
You can’t perform that action at this time.
0 commit comments