Skip to content

Commit 1e0f279

Browse files
committed
Move type annotation to comment for Py2 compat.
https://mypy.readthedocs.io/en/stable/python2.html
1 parent ba0e5d2 commit 1e0f279

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

requests_oauthlib/oauth2_session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ def register_compliance_hook(self, hook_type, hook):
544544
)
545545
self.compliance_hook[hook_type].add(hook)
546546

547-
def _raise_for_5xx(self, response: requests.models.Response) -> None:
547+
def _raise_for_5xx(self, response):
548+
# type: (requests.models.Response) -> None
548549
"""
549550
Raise requests.HTTPError if response is an HTTP 5XX error.
550551

0 commit comments

Comments
 (0)