From a32ad8dea61897ae43ff6133bb47bfc669371f44 Mon Sep 17 00:00:00 2001 From: Rehan Khwaja Date: Tue, 2 Jul 2024 21:40:10 -0700 Subject: [PATCH] Lint fixes --- src/rtmilk/_sansio.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rtmilk/_sansio.py b/src/rtmilk/_sansio.py index e4b4a9a..275e131 100644 --- a/src/rtmilk/_sansio.py +++ b/src/rtmilk/_sansio.py @@ -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)}')