blob: a5c0721f4a69b23495deb1166305101ff8123358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from dataclasses import dataclass, field
from .base import *
@dataclass(frozen=True,eq=True)
class VariadicType(Type):
def __hash__(self):
return hash("VARIADIC_TYPE")
def type(self,
specialize_templates: bool = False,
without_template: bool = False) -> str:
return f"..."
def decl(self,
label: str,
specialize_templates: bool = False,
without_template: bool = False) -> str:
return f"..."
@property
def is_builtin(self):
return True
|