comparison sat_frontends/jp/base.py @ 3893:045af0eeda3f

core, CLI (base), tools (common/data_format): typing/core readability
author Goffi <goffi@goffi.org>
date Wed, 21 Sep 2022 22:20:43 +0200
parents 915fb230cb28
children 6939594ba77e
comparison
equal deleted inserted replaced
3892:ba78cc0c8d59 3893:045af0eeda3f
1253 1253
1254 def getPubsubExtra(self, extra: Optional[dict] = None) -> str: 1254 def getPubsubExtra(self, extra: Optional[dict] = None) -> str:
1255 """Helper method to compute extra data from pubsub arguments 1255 """Helper method to compute extra data from pubsub arguments
1256 1256
1257 @param extra: base extra dict, or None to generate a new one 1257 @param extra: base extra dict, or None to generate a new one
1258 @return: dict which can be used directly in the bridge for pubsub 1258 @return: serialised dict which can be used directly in the bridge for pubsub
1259 """ 1259 """
1260 if extra is None: 1260 if extra is None:
1261 extra = {} 1261 extra = {}
1262 else: 1262 else:
1263 intersection = {C.KEY_ORDER_BY}.intersection(list(extra.keys())) 1263 intersection = {C.KEY_ORDER_BY}.intersection(list(extra.keys()))