Skip to content

refactor: replace NotImplemented raises with NotImplementedError#22

Open
deepsource-dev-autofix[bot] wants to merge 1 commit intomasterfrom
deepsource-autofix-c3fa49b7
Open

refactor: replace NotImplemented raises with NotImplementedError#22
deepsource-dev-autofix[bot] wants to merge 1 commit intomasterfrom
deepsource-autofix-c3fa49b7

Conversation

@deepsource-dev-autofix
Copy link

Fixes are generated by AI. Review them carefully before applying to your codebase.

This PR updates the code to replace any instances where NotImplemented was being raised with the appropriate NotImplementedError exception. This change aligns the codebase with Python best practices and ensures that error handling is semantically correct.

  • raising NotImplemented is not allowed: previously, some functions were using raise NotImplemented, which is not a valid exception in Python. We have replaced those occurrences with raise NotImplementedError to correctly signal unimplemented functionality and improve exception clarity.

**Fixes are generated by AI. Review them carefully before applying to your codebase.**

This PR updates the code to replace any instances where `NotImplemented` was being raised with the appropriate `NotImplementedError` exception. This change aligns the codebase with Python best practices and ensures that error handling is semantically correct.

- raising `NotImplemented` is not allowed: previously, some functions were using `raise NotImplemented`, which is not a valid exception in Python. We have replaced those occurrences with `raise NotImplementedError` to correctly signal unimplemented functionality and improve exception clarity.
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.

0 participants

Comments