Skip to content

chore: cleanup of get_dtype (with numpy 2.5 support)#285

Open
vincentkoppen wants to merge 8 commits into
mainfrom
pgm/support-numpy-2-5-0-with-cleanup
Open

chore: cleanup of get_dtype (with numpy 2.5 support)#285
vincentkoppen wants to merge 8 commits into
mainfrom
pgm/support-numpy-2-5-0-with-cleanup

Conversation

@vincentkoppen

Copy link
Copy Markdown
Member

A small cleanup of the get_dtype function:

  • Directly determine the errors based on annotations instead of the dtypes dict
  • Remove the dtypes dict, directly create the dtype_list
    • The string length is now a list comprehension. We could also improve the logic, so that "appending" will check it or something. But this is a first simple cleanup

Should make Sonarcloud happy and make the flow a bit simpler to understand.

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
@vincentkoppen vincentkoppen marked this pull request as ready for review June 26, 2026 11:45
Base automatically changed from pgm/support-numpy-2-5-0 to main July 7, 2026 07:44
Signed-off-by: Vincent Koppen <53343926+vincentkoppen@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant