blob: d14904a5f02e0a1fe82f79e040ecbe1343970a23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from dataclasses import dataclass, field
from .base import *
@dataclass(frozen=True,eq=True)
class ValueType(Type):
value: int
def __hash__(self):
return hash(self.value)
def type(self,
specialize_templates: bool = False,
without_template: bool = False) -> str:
return f"{self.value}"
@property
def is_builtin(self):
return True
|