fix linting + update changelog & contributors

This commit is contained in:
Bastien Gérard
2020-04-26 22:51:56 +02:00
parent 38ebb5abf4
commit 78c9e9745d
5 changed files with 10 additions and 6 deletions

View File

@@ -1206,7 +1206,9 @@ class BaseQuerySet:
raise TypeError("%r is not a valid read concern." % (read_concern,))
queryset = self.clone()
queryset._read_concern = ReadConcern(**read_concern) if read_concern is not None else None
queryset._read_concern = (
ReadConcern(**read_concern) if read_concern is not None else None
)
queryset._cursor_obj = None # we need to re-create the cursor object whenever we apply read_concern
return queryset