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

 ##########
 File path: superset/dao/base.py
 ##########
 @@ -95,7 +95,7 @@ def create(cls, properties: Dict, commit=True) -> 
Optional[Model]:
         return model
 
     @classmethod
-    def update(cls, model: Model, properties: Dict, commit=True) -> 
Optional[Model]:
+    def update(cls, model: Model, properties: Dict, commit=True) -> Model:
 
 Review comment:
   Same here?
   `def update(cls, model: Model, propertied: Dict, commit: bool = True) -> 
Model:`

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