Skip to content

Fix #96#98

Merged
torfason merged 2 commits intorticulate:devfrom
aramirezreyes:print-conflicting-name
Apr 10, 2025
Merged

Fix #96#98
torfason merged 2 commits intorticulate:devfrom
aramirezreyes:print-conflicting-name

Conversation

@aramirezreyes
Copy link
Contributor

@aramirezreyes aramirezreyes commented Apr 10, 2025

This PR:

  1. Changes safe_assign so that, when there are conflicting imports, the error message shows the conflicting name.
  2. Adds a test for this.

I added two tests: the first one tests that importing a conflicting name errors (satisfied by the current behavior, I did not find a current test for this) and the second checks that the error message contains the conflicting name.

This would fix close #96

@aramirezreyes aramirezreyes force-pushed the print-conflicting-name branch from 71f5687 to 5b1cade Compare April 10, 2025 11:18
@aramirezreyes aramirezreyes force-pushed the print-conflicting-name branch from 5b1cade to 528038a Compare April 10, 2025 12:39
@aramirezreyes aramirezreyes force-pushed the print-conflicting-name branch from 528038a to db4d9f9 Compare April 10, 2025 12:42
@torfason torfason merged commit db4d9f9 into rticulate:dev Apr 10, 2025
5 checks passed
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.

2 participants