Commit 95acef4
Add type annotations to _allocate() abstract method
Make BasePackageDef generic over pin type (PinType) and add proper
type annotations to the _allocate() abstract method. This fixes
pyright type checking errors where the return type was treated as
None instead of List[PinType].
Changes:
- BasePackageDef now inherits from Generic[PinType]
- LinearAllocPackageDef specifies BasePackageDef[int]
- GAPackageDef specifies BasePackageDef[GAPin]
- _allocate() signature includes proper type hints
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 31ceb99 commit 95acef4
File tree
3 files changed
+8
-5
lines changed- chipflow_lib/packaging
3 files changed
+8
-5
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | | - | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
209 | | - | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments