Skip to content

refactor: change raise NotImplemented to NotImplementedError #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deepsource-dev-autofix[bot]
Copy link

This PR refactors instances where NotImplemented was incorrectly raised, replacing them with the proper NotImplementedError exception to adhere to Python conventions and prevent runtime issues.

  • raising NotImplemented is not allowed: The code originally used raise NotImplemented, which is invalid because NotImplemented is a special singleton return value rather than an exception class. The patch updates each occurrence to raise NotImplementedError, ensuring that the correct exception type is thrown and improving overall code reliability.

This Autofix was generated by AI. Please review the change before merging.

This PR refactors instances where `NotImplemented` was incorrectly raised, replacing them with the proper `NotImplementedError` exception to adhere to Python conventions and prevent runtime issues.

- raising `NotImplemented` is not allowed: The code originally used `raise NotImplemented`, which is invalid because `NotImplemented` is a special singleton return value rather than an exception class. The patch updates each occurrence to `raise NotImplementedError`, ensuring that the correct exception type is thrown and improving overall code reliability.

> This Autofix was generated by AI. Please review the change before merging.
Copy link

Here's the code health analysis summary for commits 8de8b21..2bcd982. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ Success
🎯 6 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

deepsource-dev bot commented Jul 4, 2025

Here's the code health analysis summary for commits 8de8b21..2bcd982. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ Success
🎯 6 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

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