Skip to content

Commit

Permalink
Correctly type _parse_xml_response in subreddit
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Mar 1, 2021
1 parent fdce2a2 commit 7252f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asyncpraw/models/reddit/subreddit.py
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 7252f7e

Please sign in to comment.