open.py 315 B

123456789
  1. from typing import Any, Callable, Union
  2. from ..element import Element
  3. from .navigate import navigate
  4. def open(target: Union[Callable[..., Any], str, Element], new_tab: bool = False) -> None: # pylint: disable=redefined-builtin
  5. """DEPRECATED: use `ui.navigate.to` instead"""
  6. navigate.to(target, new_tab)