Skip to content

Commit 5b35075

Browse files
committed
Clean up docstring violations in github3.decorators
1 parent e5d6994 commit 5b35075

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

github3/decorators.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
github3.decorators
4-
==================
5-
6-
This module provides decorators to the rest of the library
7-
8-
"""
2+
"""This module provides decorators to the rest of the library."""
93

104
from functools import wraps
115
from requests.models import Response
@@ -20,7 +14,10 @@
2014

2115

2216
class RequestsStringIO(StringIO):
17+
"""Shim compatibility for string IO."""
18+
2319
def read(self, n=-1, *args, **kwargs):
20+
"""Ignore extra args and kwargs."""
2421
# StringIO is an old-style class, so can't use super
2522
return StringIO.read(self, n)
2623

@@ -86,6 +83,7 @@ def auth_wrapper(self, *args, **kwargs):
8683

8784

8885
def generate_fake_error_response(msg, status_code=401, encoding='utf-8'):
86+
"""Generate a fake Response from requests."""
8987
r = Response()
9088
r.status_code = status_code
9189
r.encoding = encoding

0 commit comments

Comments
 (0)