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

🔧 Remove unwrap function #1017

Merged
merged 1 commit into from
Sep 10, 2023
Merged

🔧 Remove unwrap function #1017

merged 1 commit into from
Sep 10, 2023

Conversation

chrisjsewell
Copy link
Member

This run-time null check is effectively now replaced by the static type-checking.

This run-time null check is effectively now replaced by the static type-checking.
@chrisjsewell chrisjsewell requested a review from danwos September 9, 2023 02:01
Copy link
Member

@danwos danwos left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and cleaning the code 👍

@danwos danwos merged commit c1682ba into master Sep 10, 2023
@danwos danwos deleted the move-need-post-processing branch September 10, 2023 09:20
@arwedus
Copy link
Contributor

arwedus commented Oct 29, 2023

This unwrap function was used by our permalink_ext_needs extension, do we have permalink feature in sphinx-needs itself now? Or do we need to cope with this some other way?

/edit: I basically copied the unwrap function into our extension now. Just curious.

@chrisjsewell
Copy link
Member Author

I basically copied the unwrap function into our extension now.

Yeh exactly just do this 👍, although I'd suggest maybe better to handle the root cause of why it's null, rather than raising assertion errors.
In the cases here, they can never be null, so there was no point checking

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.

3 participants