Skip to content

Commit 11b4a2a

Browse files
robtaylorclaude
andcommitted
Fix: re-export packaging symbols from platforms/_utils.py
When ruff auto-fixed imports, it removed symbols that other modules were importing from platforms/_utils.py. Re-added all packaging imports so they can be re-exported for backward compatibility. This fixes import errors: - ImportError: cannot import name 'load_pinlock' - ImportError: cannot import name 'LockFile' - etc. All tests passing again (38 passed, 11 skipped). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 4317601 commit 11b4a2a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

chipflow_lib/platforms/_utils.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,21 @@
2727
from ..config_models import Config
2828

2929
# Import packaging functionality from new module
30+
# These are re-exported for backward compatibility
3031
from ..packaging import (
31-
JTAGWire,
32+
Pin, PinSet, PinList, Pins,
33+
PowerType, JTAGWire, PortType,
34+
PowerPins, JTAGPins, BringupPins,
35+
PortDesc, Interface, Component, PortMap,
36+
PackageDef, Package, LockFile,
37+
BasePackageDef, LinearAllocPackageDef,
38+
BareDiePackageDef, QuadPackageDef,
39+
GAPin, GALayout, GAPackageDef,
40+
OFPin, OpenframePackageDef,
41+
UnableToAllocate,
42+
_count_member_pins, _allocate_pins, _linear_allocate_components,
43+
_find_contiguous_sequence, _group_consecutive_items,
44+
load_pinlock,
3245
)
3346

3447
if TYPE_CHECKING:

0 commit comments

Comments
 (0)