-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BLD: use tempita for hashtable #13815
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
Conversation
Current coverage is 85.23% (diff: 100%)@@ master #13815 diff @@
==========================================
Files 140 140
Lines 50420 50420
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 42975 42975
Misses 7445 7445
Partials 0 0
|
if val == val: | ||
{{endif}} | ||
|
||
{{tab}}k = kh_get_{{dtype}}(self.table, val) |
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.
{{tab}}
is pretty ugly! If tempita doesn't have a way to handle conditional indentation I would consider simply making separate blocks for each condition. That will be slightly more code but easier to understand.
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.
Yes, using if-else is clearer in this case. fixed.
be sure to add to the linter as well. |
@jreback OK. linting is enabled for all |
thanks @sinhrks I know you wanted to add other types (e.g. int32), so can make another issue for that, but this is great. |
git diff upstream/master | flake8 --diff