Skip to content
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

Static Typing profilers/column profile #661

Merged

Conversation

tonywu315
Copy link
Contributor

@taylorfturner taylorfturner added the static_typing mypy static typing issues label Sep 21, 2022
Copy link
Contributor

@taylorfturner taylorfturner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one comment around imports

@ksneab7 ksneab7 enabled auto-merge (squash) September 22, 2022 14:46
@ksneab7 ksneab7 merged commit a4decf0 into capitalone:main Sep 22, 2022
@@ -209,9 +218,9 @@ def _merge_order(
) or order == "random":
piecewise = False

return order, first_value, last_value, piecewise
return order, cast(int, first_value), cast(int, last_value), piecewise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be casted or is optional an acceptable output arg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think first_value and last_value are always not None because one of the conditionals on lines 205 to 213 will run.

@tonywu315 tonywu315 deleted the static_typing/profilers/column_profile branch September 23, 2022 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
static_typing mypy static typing issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants