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

Deprecate array protocol fallback #953

Merged
merged 2 commits into from
Dec 27, 2019
Merged

Deprecate array protocol fallback #953

merged 2 commits into from
Dec 27, 2019

Conversation

jthielen
Copy link
Contributor

@jthielen jthielen commented Dec 26, 2019

This PR implements the changes discussed in #924: deprecating the __array_* attribute fallback and making __array__ explicit in the Quantity API. Also, to enable the non-fallback behavior before the following minor version is released that removes the fallback, a check for a PINT_ARRAY_PROTOCOL_FALLBACK environment variable is added.

@keewis
Copy link
Contributor

keewis commented Dec 26, 2019

I think this also closes #892?

@hgrecco
Copy link
Owner

hgrecco commented Dec 26, 2019

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 26, 2019

Merge conflict

@jthielen
Copy link
Contributor Author

Merge conflict

I've just rebased and fixed the conflict after #954 was merged.

@hgrecco
Copy link
Owner

hgrecco commented Dec 27, 2019

bors r+

bors bot added a commit that referenced this pull request Dec 27, 2019
953: Deprecate array protocol fallback r=hgrecco a=jthielen

This PR implements the changes discussed in #924: deprecating the `__array_*` attribute fallback and making `__array__` explicit in the Quantity API. Also, to enable the non-fallback behavior before the following minor version is released that removes the fallback, a check for a `PINT_ARRAY_PROTOCOL_FALLBACK` environment variable is added.

- [x] Closes #892, Closes #924
- [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors
- [x] The change is fully covered by automated unit tests
- [x] Documented in docs/ as appropriate
- [x] Added an entry to the CHANGES file


Co-authored-by: Jon Thielen <github@jont.cc>
@bors
Copy link
Contributor

bors bot commented Dec 27, 2019

Build succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants