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

Replace type_workarounds.NotImplementedType with types.NotImplementedType #6790

Conversation

Ayobami-00
Copy link
Contributor

@Ayobami-00 Ayobami-00 commented Nov 12, 2024

  • Replaced type_workarounds.NotImplementedType with types.NotImplementedType

  • Updated code to use Python 3.10's built-in types.NotImplementedType, removing the need for the type_workarounds module.

  • This change simplifies
    the codebase by relying on standard types, allowing us to delete the now-redundant type_workarounds.py file.

Fixes #6775

…tedType

- Updated code to use Python 3.10's built-in types.NotImplementedType,
removing the need for the type_workarounds module.

This change simplifies
the codebase by relying on standard types, allowing us to delete the
now-redundant type_workarounds.py file.
@Ayobami-00 Ayobami-00 requested review from vtomole and a team as code owners November 12, 2024 17:31
@CirqBot CirqBot added the size: M 50< lines changed <250 label Nov 12, 2024
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.84%. Comparing base (d1b0430) to head (2ca50ff).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6790      +/-   ##
==========================================
- Coverage   97.85%   97.84%   -0.01%     
==========================================
  Files        1085     1084       -1     
  Lines       93592    93590       -2     
==========================================
- Hits        91582    91577       -5     
- Misses       2010     2013       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavoljuhas
Copy link
Collaborator

For a faster testing consider setting up a Python development environment following
https://github.com/quantumlib/Cirq/blob/main/docs/dev/development.md#setting-up-an-environment

After that running check/mypy or check/format-incremental would do the CI checks locally.

@Ayobami-00
Copy link
Contributor Author

@pavoljuhas, All checks have passed

No change in code function
@pavoljuhas pavoljuhas enabled auto-merge (squash) November 13, 2024 07:50
Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!

@pavoljuhas pavoljuhas merged commit fd95547 into quantumlib:main Nov 13, 2024
37 checks passed
@Ayobami-00
Copy link
Contributor Author

Thanks, @pavoljuhas, for reviewing and merging the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace type_workarounds.NotImplementedType
3 participants