Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhwaja committed Jul 3, 2024
1 parent 99df1cd commit a32ad8d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rtmilk/_sansio.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ def _RtmDatetime(datetime_):

def _RebuildArgs(**kwargs):
"""Filter out the args that were set to None - they were optional"""
result = {}
for key, value in kwargs.items():
if value is not None:
result[key] = value
return result
return {key: value for key, value in kwargs.items() if value is not None}

def _ValidateReturn(type_, rsp):
_log.debug(f'Parsing {type_}:\n{pformat(rsp)}')
Expand Down

0 comments on commit a32ad8d

Please sign in to comment.