Skip to content

Commit b24b3ed

Browse files
committed
Remove TypedDict from assignment_info in favour of dataclasses
1 parent beaad99 commit b24b3ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonbpf/vmlinux_parser/assignment_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enum import Enum, auto
2-
from typing import Any, Dict, List, Optional, TypedDict
2+
from typing import Any, Dict, List, Optional
33
from dataclasses import dataclass
44
import llvmlite.ir as ir
55

@@ -16,15 +16,15 @@ class AssignmentType(Enum):
1616

1717

1818
@dataclass
19-
class FunctionSignature(TypedDict):
19+
class FunctionSignature:
2020
return_type: str
2121
param_types: List[str]
2222
varargs: bool
2323

2424

2525
# Thew name of the assignment will be in the dict that uses this class
2626
@dataclass
27-
class AssignmentInfo(TypedDict):
27+
class AssignmentInfo:
2828
value_type: AssignmentType
2929
python_type: type
3030
value: Optional[Any]

0 commit comments

Comments
 (0)