Skip to content

Commit

Permalink
use Annotated from typing extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Oct 20, 2023
1 parent a185c85 commit 628b6a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
import inspect
import typing
from enum import Enum
from pathlib import Path
from typing import Optional, Tuple
Expand Down Expand Up @@ -116,7 +115,7 @@ def test_create_widget_annotation_overwritte_parrams():
assert isinstance(wdg1, widgets.ProgressBar)
assert wdg1.visible
wdg2 = widgets.create_widget(
annotation=typing.Annotated[widgets.ProgressBar, {"visible": False}]
annotation=Annotated[widgets.ProgressBar, {"visible": False}]
)
assert isinstance(wdg2, widgets.ProgressBar)
assert not wdg2.visible
Expand Down

0 comments on commit 628b6a8

Please sign in to comment.