Browse Source

relax type annotation

Falko Schindler 1 year ago
parent
commit
12d39b6fd3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nicegui/elements/interactive_image.py

+ 1 - 1
nicegui/elements/interactive_image.py

@@ -24,7 +24,7 @@ class InteractiveImage(SourceElement, ContentElement, component='interactive_ima
     def __init__(self,
                  source: Union[str, Path, 'PIL_Image'] = '', *,
                  content: str = '',
-                 size: Optional[Tuple[int, int]] = None,
+                 size: Optional[Tuple[float, float]] = None,
                  on_mouse: Optional[Callable[..., Any]] = None,
                  events: List[str] = ['click'],
                  cross: bool = False,