Skip to content

Commit

Permalink
Update the types of dataclass attributes according to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kvid committed Sep 1, 2020
1 parent df90d83 commit 0d2ad00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wireviz/DataClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Connector:
pinlabels: List[Any] = field(default_factory=list)
pins: List[Any] = field(default_factory=list)
color: Optional[str] = None
show_name: bool = None
show_pincount: bool = None
show_name: Optional[bool] = None
show_pincount: Optional[bool] = None
hide_disconnected_pins: bool = False
autogenerate: bool = False
loops: List[Any] = field(default_factory=list)
Expand Down Expand Up @@ -90,7 +90,7 @@ class Cable:
length: float = 0
color: Optional[str] = None
wirecount: Optional[int] = None
shield: bool = False
shield: Union[bool, str] = False # False | True | color
notes: Optional[str] = None
colors: List[Any] = field(default_factory=list)
color_code: Optional[str] = None
Expand Down

0 comments on commit 0d2ad00

Please sign in to comment.