Skip to content

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.

)?;

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