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

Address NumPy and NotImplemented deprecation warnings #6465

Merged
merged 6 commits into from
Feb 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo in boolean expression
  • Loading branch information
pavoljuhas committed Feb 14, 2024
commit 5a8c13b649c37350ed9703dcbfc23107f7080e5e
2 changes: 1 addition & 1 deletion cirq-core/cirq/protocols/resolve_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def resolve_parameters(
is_parameterized = (
val._is_parameterized_() if hasattr(val, '_is_parameterized_') else NotImplemented
)
if is_parameterized is NotImplemented or not is_parameterized:
if is_parameterized is not NotImplemented and not is_parameterized:
return val

getter = getattr(val, '_resolve_parameters_', None)
Expand Down