mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Upgrade pylint to 2.5.3 and fix most new rules (#10101)
* Bump pylint version to 2.5.3 * Add a global disable for the most common new pylint error * Fix a bunch of files containing very few errors * More pylint tweakage, low-hanging fruit * More easy stuff... * Fix more erroring files * Fix the last couple of errors, clean pylint! * Black * Fix mypy issue in connectors/druid/models.py
This commit is contained in:
@@ -460,7 +460,7 @@ def check_slice_perms(_self: Any, slice_id: int) -> None:
|
||||
def _deserialize_results_payload(
|
||||
payload: Union[bytes, str], query: Query, use_msgpack: Optional[bool] = False
|
||||
) -> Dict[str, Any]:
|
||||
logger.debug(f"Deserializing from msgpack: {use_msgpack}")
|
||||
logger.debug("Deserializing from msgpack: %r", use_msgpack)
|
||||
if use_msgpack:
|
||||
with stats_timing(
|
||||
"sqllab.query.results_backend_msgpack_deserialize", stats_logger
|
||||
@@ -482,11 +482,9 @@ def _deserialize_results_payload(
|
||||
)
|
||||
|
||||
return ds_payload
|
||||
else:
|
||||
with stats_timing(
|
||||
"sqllab.query.results_backend_json_deserialize", stats_logger
|
||||
):
|
||||
return json.loads(payload)
|
||||
|
||||
with stats_timing("sqllab.query.results_backend_json_deserialize", stats_logger):
|
||||
return json.loads(payload)
|
||||
|
||||
|
||||
def get_cta_schema_name(
|
||||
|
||||
Reference in New Issue
Block a user