-
Notifications
You must be signed in to change notification settings - Fork 6
Add typehint overloads for __getitem__ #109
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
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
jaapschoutenalliander
left a comment
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.
Thing to test: impact on performance (https://github.com/PowerGridModel/power-grid-model-ds/blob/main/tests/performance/array_performance_tests.py). Since these changes can impact a lot of calls
overload-getitem-------------------- perftest_initialize -------------------- -------------------- perftest_slice -------------------- -------------------- perftest_set_field -------------------- -------------------- perftest_set_attr -------------------- -------------------- perftest_loop_slice_1 -------------------- -------------------- perftest_loop_data_slice_1 -------------------- -------------------- perftest_loop_slice -------------------- -------------------- perftest_loop_set_field -------------------- -------------------- perftest_loop_get_field -------------------- -------------------- perftest_loop_data_get_field -------------------- -------------------- perftest_loop_get_attr -------------------- -------------------- perftest_fancypy_concat -------------------- -------------------- perftest_fancypy_unique -------------------- -------------------- perftest_fancypy_sort -------------------- main-------------------- perftest_initialize -------------------- -------------------- perftest_slice -------------------- -------------------- perftest_set_field -------------------- -------------------- perftest_set_attr -------------------- -------------------- perftest_loop_slice_1 -------------------- -------------------- perftest_loop_data_slice_1 -------------------- -------------------- perftest_loop_slice -------------------- -------------------- perftest_loop_set_field -------------------- -------------------- perftest_loop_get_field -------------------- -------------------- perftest_loop_data_get_field -------------------- -------------------- perftest_loop_get_attr -------------------- -------------------- perftest_fancypy_concat -------------------- -------------------- perftest_fancypy_unique -------------------- -------------------- perftest_fancypy_sort -------------------- |
Signed-off-by: Thijs Baaijen <[email protected]>
0c3828e to
65434f0
Compare
|



Adds proper overloads for getitem for typecheckers.
piggyback: