Skip to content

Commit 7b3125c

Browse files
committed
disable pylint false positive unsubscriptable-object, ref #4
pylint-dev/pylint#3129
1 parent 50beb23 commit 7b3125c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

restmagic/response.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from requests import Response
66

77

8-
def get_mime_type(response: Response) -> Optional[str]:
8+
def get_mime_type(response: Response) -> Optional[str]: # pylint: disable=unsubscriptable-object
99
"""Returns the MIME type of the given HTTP response.
1010
1111
:param response: :class:`request.Response`
@@ -16,7 +16,9 @@ def get_mime_type(response: Response) -> Optional[str]:
1616
return None
1717

1818

19-
def guess_response_content_subtype(response: Response) -> Optional[str]:
19+
def guess_response_content_subtype(
20+
response: Response
21+
) -> Optional[str]: # pylint: disable=unsubscriptable-object
2022
"""Returns the guessed content subtype of the given HTTP response.
2123
"""
2224
mime = get_mime_type(response)

0 commit comments

Comments
 (0)