villebro commented on a change in pull request #9411: [mypy] Enforcing typing 
for superset.charts
URL: 
https://github.com/apache/incubator-superset/pull/9411#discussion_r399833505
 
 

 ##########
 File path: superset/utils/core.py
 ##########
 @@ -547,7 +547,7 @@ def get_datasource_full_name(database_name, 
datasource_name, schema=None):
     return "[{}].[{}].[{}]".format(database_name, schema, datasource_name)
 
 
-def validate_json(obj):
+def validate_json(obj: Union[bytes, bytearray, str]) -> None:
 
 Review comment:
   Is this the best practice in the absence of a proper `from typing import 
JSONType`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to