Use proper punctuation and capitalization in selected comments
@@ -382,8 +382,8 @@ def is_reducible(obj):
# defaultdicts may contain functions which we cannot serialise
if is_collections(obj) and not isinstance(obj, collections.defaultdict):
return True
- # we turn off the formatting in order to double the speed of the function
- # condensing it into one line seems to save the parser a lot of time
+ # We turn off the formatting in order to double the speed of the function.
+ # Condensing it into one line seems to save the parser a lot of time.
# fmt: off
# pylint: disable=line-too-long
if type(obj) in NON_REDUCIBLE_TYPES or obj is object or is_dictionary_subclass(obj) or isinstance(obj, types.ModuleType) or is_reducible_sequence_subclass(obj) or is_list_like(obj) or isinstance(getattr(obj, '__slots__', None), iterator_types) or (is_type(obj) and obj.__module__ == 'datetime'): # noqa: E501
