EugeneTorap commented on code in PR #24033:
URL: https://github.com/apache/superset/pull/24033#discussion_r1191972803


##########
superset/embedded/view.py:
##########
@@ -55,6 +55,8 @@ def embedded(
         if not embedded:
             abort(404)
 
+        assert embedded is not None

Review Comment:
   Mypy doc:
   
   > You can often work around these errors by using assert isinstance(obj, 
ClassName) or assert obj is not None to tell mypy that you know that the type 
is more specific than what mypy thinks.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to