1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

plugins/eddn: Remove the 'default values' from should_retrn & new_data

In *this* case the variables *are* used in the scope so become bound, so
we can get away with bare type declaration.
This commit is contained in:
Athanasius 2022-12-22 16:54:03 +00:00
parent 2c11aef1be
commit ce4a6ff898
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -635,8 +635,8 @@ class EDDN:
:param data: a dict containing the starport data
:param is_beta: whether or not we're currently in beta mode
"""
should_return: bool = False
new_data: Dict[str, Any] = {}
should_return: bool
new_data: Dict[str, Any]
should_return, new_data = killswitch.check_killswitch('capi.request./market', {})
if should_return:
logger.warning("capi.request./market has been disabled by killswitch. Returning.")
@ -768,8 +768,8 @@ class EDDN:
:param data: dict containing the outfitting data
:param is_beta: whether or not we're currently in beta mode
"""
should_return: bool = False
new_data: Dict[str, Any] = {}
should_return: bool
new_data: Dict[str, Any]
should_return, new_data = killswitch.check_killswitch('capi.request./shipyard', {})
if should_return:
logger.warning("capi.request./shipyard has been disabled by killswitch. Returning.")
@ -836,8 +836,8 @@ class EDDN:
:param data: dict containing the shipyard data
:param is_beta: whether or not we are in beta mode
"""
should_return: bool = False
new_data: Dict[str, Any] = {}
should_return: bool
new_data: Dict[str, Any]
should_return, new_data = killswitch.check_killswitch('capi.request./shipyard', {})
if should_return:
logger.warning("capi.request./shipyard has been disabled by killswitch. Returning.")