-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(typings): model_id is a multiple option #25967
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the cleanup! LMKWYT about my small improvement proposal.
superset/cli/thumbnails.py
Outdated
@@ -76,7 +76,7 @@ def compute_thumbnails( | |||
def compute_generic_thumbnail( | |||
friendly_type: str, | |||
model_cls: Union[type[Dashboard], type[Slice]], | |||
model_id: int, | |||
model_id: list[int], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: For disambiguation and clarity, we may want to call the argument in the inner function model_ids
.
Let's not change the outer variable name, only the one in the inner function. |
@villebro Thanks for the advise. Amended. |
(cherry picked from commit 04f1c35)
(cherry picked from commit 04f1c35)
(cherry picked from commit 04f1c35)
SUMMARY
superset compute-thumbnails
accepts multiple--model_id
options. Themodel_id
should be aList[int]
.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION