def _user_photo_icon_args(icon, url_args): from abilian.web.views import images # late import avoid circular import return images.user_url_args(current_user, max(icon.width, icon.height))[1]
def _user_photo_endpoint(): from abilian.web.views import images # late import: avoid circular import return images.user_url_args(current_user, 16)[0]
def _user_photo_icon_args(icon: DynamicIcon, url_args: Dict) -> Dict[str, Any]: from abilian.web.views import images # lazy import avoid circular import # pyre-fixme[6]: Expected `User` for 1st param but got `LocalProxy`. return images.user_url_args(current_user, max(icon.width, icon.height))[1]
def _user_photo_endpoint() -> str: from abilian.web.views import images # lazy import: avoid circular import # pyre-fixme[6]: Expected `User` for 1st param but got `LocalProxy`. return images.user_url_args(current_user, 16)[0]