Skip to content

Commit

Permalink
Merge pull request #85 from praw-dev/fix_typing_error
Browse files Browse the repository at this point in the history
Correctly type _parse_xml_response in subreddit
  • Loading branch information
LilSpazJoekp committed Mar 2, 2021
2 parents ea67253 + 7252f7e commit bda43bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asyncpraw/models/reddit/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
from urllib.parse import urljoin
from xml.etree.ElementTree import XML

from aiohttp import ClientResponse
from aiohttp.web_ws import WebSocketError
from asyncprawcore import Redirect
from requests import Response

from ...const import API_PATH, JPEG_HEADER
from ...exceptions import (
Expand Down Expand Up @@ -642,7 +642,7 @@ async def _fetch(self):
self.__dict__.update(other.__dict__)
self._fetched = True

def _parse_xml_response(self, response: Response):
def _parse_xml_response(self, response: ClientResponse):
"""Parse the XML from a response and raise any errors found."""
xml = response.text
root = XML(xml)
Expand Down

0 comments on commit bda43bc

Please sign in to comment.