Skip to content

Commit

Permalink
fix: rewriting Union syntax to support older versions of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikita95 committed Feb 27, 2024
1 parent e11654b commit df9aced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streamsync/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class Component(BaseModel):
position: int = 0
parentId: Optional[str] = None
handlers: Optional[Dict[str, str]] = None
visible: Optional[bool | str] = None
visible: Optional[Union[bool, str]] = None
binding: Optional[Dict] = None

def to_dict(self) -> Dict:
Expand Down

0 comments on commit df9aced

Please sign in to comment.