Skip to content

DEP: remove PolyBase from np.polynomial.polyutils - #18963

Merged
charris merged 5 commits into
numpy:mainfrom
hollycorbett:polybase_deprecated_removal
May 11, 2021
Merged

charris merged 5 commits into
numpy:mainfrom
hollycorbett:polybase_deprecated_removal

Conversation

@hollycorbett

Copy link
Copy Markdown

DEP: Remove PolyBase from np.polynomial.polyutils

Addresses issue #15658 by removing PolyBase and associated error classes with only usages here. Happy to submit alternative PR using getattr approach instead if desired.

@BvB93

BvB93 commented May 9, 2021

Copy link
Copy Markdown
Member

Can you also remove the exceptions from the stub file?

class PolyError(Exception): ...
class PolyDomainError(PolyError): ...
# NOTE: Deprecated
# class PolyBase: ...

@hollycorbett
hollycorbett force-pushed the polybase_deprecated_removal branch 2 times, most recently from 2b38f7c to 360a959 Compare May 9, 2021 17:58
@hollycorbett

Copy link
Copy Markdown
Author

All done @BvB93 ... thanks for the heads up. Do let me know if I missed anything.

@charris

charris commented May 9, 2021

Copy link
Copy Markdown
Member

This could use a release note. See doc/release/upcoming_changes for examples. The name should be 18963.expired.rst.

@BvB93

BvB93 commented May 9, 2021

Copy link
Copy Markdown
Member

All done @BvB93 ... thanks for the heads up. Do let me know if I missed anything.

Nop, no further annotation-related comments from me.

Holly Corbett added 4 commits May 10, 2021 10:05
Addresses issue numpy#15658 by removing PolyBase class.  Happy to submit alternative PR using getattr approach instead if desired.
Additionally removes associated PolyError classes.  These appear to me to be unused outside this file.
@hollycorbett
hollycorbett force-pushed the polybase_deprecated_removal branch from a70d828 to 7ef9da0 Compare May 10, 2021 08:07
@hollycorbett

Copy link
Copy Markdown
Author

@charris PR updated. Happy to squash before merge if preferred.

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I took the liberty of adding a few minor touchups to the release note (basically just formatting + mentioning that the Exceptions are also removed).

LGTM - I'm in favor of removing the objects outright. Thanks @hollycorbett !

@hollycorbett

Copy link
Copy Markdown
Author

@rossbar feedback much appreciated - agree your edit is much better. Thanks! :)

I took the liberty of adding a few minor touchups to the release note (basically just formatting + mentioning that the Exceptions are also removed).

LGTM - I'm in favor of removing the objects outright. Thanks @hollycorbett !

@charris
charris merged commit 74a65e1 into numpy:main May 11, 2021
@charris

charris commented May 11, 2021

Copy link
Copy Markdown
Member

Thanks @hollycorbett .

@hollycorbett
hollycorbett deleted the polybase_deprecated_removal branch May 11, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants