From bf67617102044b1c04d82601699059990e7971cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Fri, 13 Dec 2019 17:22:43 -0300 Subject: [PATCH] [wgem] fix BeautifulSoup definitions --- bauh/gems/web/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bauh/gems/web/controller.py b/bauh/gems/web/controller.py index a72ac7c7..1306f462 100644 --- a/bauh/gems/web/controller.py +++ b/bauh/gems/web/controller.py @@ -64,7 +64,7 @@ class WebApplicationManager(SoftwareManager): except: return 'en_US' - def _get_app_name(self, url_no_protocol: str, soup: BeautifulSoup) -> str: + def _get_app_name(self, url_no_protocol: str, soup: "BeautifulSoup") -> str: name_tag = soup.head.find('meta', attrs={'name': 'application-name'}) name = name_tag.get('content') if name_tag else None @@ -80,7 +80,7 @@ class WebApplicationManager(SoftwareManager): return name - def _get_app_icon_url(self, url: str, soup: BeautifulSoup) -> str: + def _get_app_icon_url(self, url: str, soup: "BeautifulSoup") -> str: for rel in ('icon', 'ICON'): icon_tag = soup.head.find('link', attrs={"rel": rel}) icon_url = icon_tag.get('href') if icon_tag else None