Skip to content

Commit

Permalink
news.py: Fixed return type for _get_rss_feed(self)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-omaha committed May 31, 2018
1 parent e863935 commit 5785996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pikaur/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def check_news(self) -> None:
if self._is_new(self._last_online_news(xml_feed)):
self._print_news(xml_feed)

def _get_rss_feed(self):
def _get_rss_feed(self) -> str:
try:
http_response: HTTPResponse = urllib.request.urlopen(
self.URL + self.DIR
Expand Down Expand Up @@ -103,7 +103,7 @@ def _print_news(self, xml_feed: xml.etree.ElementTree.ElementTree):
# no more news
return

# noinspection PyUnboundLocalVariable,PyPep8Naming
# noinspection PyUnboundLocalVariable
@staticmethod
def _print_one_entry(news_entry: xml.etree.ElementTree.Element) -> None:
child: xml.etree.ElementTree.Element
Expand Down

0 comments on commit 5785996

Please sign in to comment.