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

Handle missing dynamic imports #6

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Conversation

emdoyle
Copy link
Member

@emdoyle emdoyle commented Feb 12, 2024

If mark_as_public fails to find the specified member_name in the file_path, we previously raised an error.
Now we will add a call to public() with the member_name used as a string literal argument. This is also now recognized by the public member visitor.

print(f"Error marking {write_op.operation} in {write_op.location}")
print(
f"Error marking {write_op.operation.value}"
f"{'({member})'.format(member=write_op.member_name) if write_op.member_name else ''}"
Copy link
Member

Choose a reason for hiding this comment

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

never seen a format call inside an f string lol might be worth doing this formatting outside of the print() call

@emdoyle emdoyle merged commit 5cd9d15 into main Feb 13, 2024
4 checks passed
@emdoyle emdoyle deleted the handle-missing-dynamic-imports branch February 13, 2024 05:06
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