Skip to content

Deprecation warning fix #2

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 15 commits into
base: main
Choose a base branch
from

Conversation

alinioan
Copy link

Fixed case where returning strict subclasses of complex in complex doesn't give a deprecation warning.

Added deprecation warning for when returning an instance of a strict subclass of complex.
removed label from unit test script for test_constructor
Copy link

@alexandruradovici alexandruradovici left a comment

Choose a reason for hiding this comment

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

What issue are you solving?

@alinioan
Copy link
Author

What issue are you solving?

I solved a unit test that contained a known bug and that was marked as TODO.

Copy link

@alexandruradovici alexandruradovici left a comment

Choose a reason for hiding this comment

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

Please send this to upstream and place a link to it here.

@alinioan
Copy link
Author

RustPython#5152

ran cargo fmt --all
Copy link

@alexandruradovici alexandruradovici left a comment

Choose a reason for hiding this comment

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

I suggest using the rust style function expression.

@@ -74,7 +75,7 @@ impl PyObjectRef {
vm,
)?;

return Ok(Some((ret.value, true)))
return Ok(Some((ret.value, true)));

Choose a reason for hiding this comment

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

Suggested change
return Ok(Some((ret.value, true)));
Ok(Some((ret.value, true)))

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.

2 participants