Skip to content

Commit

Permalink
Change | to Union usage to suport py39 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski authored Dec 17, 2024
1 parent c2af1b1 commit 1a00805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scwidgets/exercise/_widget_code_exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,15 +690,15 @@ def code(self):
return self._code

@property
def output(self) -> CueOutput | None:
def output(self) -> Union[CueOutput, None]:
return self._cue_outputs[0] if len(self._cue_outputs) > 0 else None

@property
def outputs(self) -> List[CueOutput]:
return self._cue_outputs

@property
def figure(self) -> Figure | None:
def figure(self) -> Union[Figure, None]:
return (
self._cue_outputs[0].figure
if len(self._cue_outputs) > 0
Expand Down

0 comments on commit 1a00805

Please sign in to comment.