Skip to content

Commit f13330d

Browse files
committed
format fixes
1 parent e0d1df6 commit f13330d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

oidc_provider/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ def response_type_values(self):
147147

148148
def response_type_descriptions(self):
149149
# return as a list, rather than a generator, so descriptions display correctly in admin
150-
return [
151-
response_type.description for response_type in self.response_types.all()
152-
]
150+
return [response_type.description for response_type in self.response_types.all()]
153151

154152
@property
155153
def redirect_uris(self):

oidc_provider/tests/app/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ def fake_introspection_processing_hook(response_dict, client, id_token):
179179

180180
class TestAuthBackend:
181181
def authenticate(self, *args, **kwargs):
182-
if django.VERSION[0] >= 2 or (
183-
django.VERSION[0] == 1 and django.VERSION[1] >= 11
184-
):
182+
if django.VERSION[0] >= 2 or (django.VERSION[0] == 1 and django.VERSION[1] >= 11):
185183
assert len(args) > 0 and args[0]
186184
return ModelBackend().authenticate(*args, **kwargs)

0 commit comments

Comments
 (0)