瀏覽代碼

relax type annotation

Falko Schindler 1 年之前
父節點
當前提交
12d39b6fd3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,