Skip to content

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