Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Fix GetPartFromPort default part type
Browse files Browse the repository at this point in the history
  • Loading branch information
lrockreal committed Nov 26, 2023
1 parent 45f66cc commit 9ca0860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generateDefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def main():
for part, _ in parts_data.items():
single_overloads.append(f"((port: PortLike, partType: \"{part}\") -> {part})")
multi_overloads.append(f"((port: PortLike, partType: \"{part}\") -> {{{part}}})")
single_overloads.append(f"((port: PortLike, partType: string) -> {part})")
multi_overloads.append(f"((port: PortLike, partType: string) -> {{{part}}})")
single_overloads.append(f"((port: PortLike, partType: string) -> {part_generator.default_part_name})")
multi_overloads.append(f"((port: PortLike, partType: string) -> {{{part_generator.default_part_name}}})")
sep = '\n & '
content += f"declare GetPartFromPort: {sep.join(single_overloads)}\n"
content += f"declare GetPartsFromPort: {sep.join(single_overloads)}\n"
Expand Down

0 comments on commit 9ca0860

Please sign in to comment.