You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/03/29 18:36:16 UTC
[GitHub] [incubator-superset] dpgaspar commented on a change in pull request
#9411: [mypy] Enforcing typing for superset.charts
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org