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

MAINT: reintroduce a OInfo get method for backward compatibility. #14033

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Apr 25, 2023

Reintroduce a OInfo get method for backward compatibility.

OInfo was converted to a dataclass from dict in commit 0fef298, but some external code is still be using it.

This commit reintroduces the method, but deprecates it.

Fixes h5py/h5py#2253

@tacaswell
Copy link
Contributor

Can we not deprecate it, or at least not deprecate it for existing fields?

@Carreau
Copy link
Member Author

Carreau commented Apr 26, 2023

Sure, we could, but then it remove the advantage of having static checking of existing fields.

Can we compromise to "pending deprecation", and in like 2 years we deprecate ?

@tacaswell
Copy link
Contributor

How about a 6mo reprieve? The goal would be to get a version of h5py that (conditionally) use the fields before it warns (because warnings showing up in completion is also super annoying ....)

@Carreau
Copy link
Member Author

Carreau commented Apr 26, 2023

Sure.

IPython/core/oinspect.py Outdated Show resolved Hide resolved
@tacaswell
Copy link
Contributor

xref h5py/h5py#2256

Reintroduce a OInfo get method for backward compatibility.

OInfo was converted to a dataclass from dict in commit 0fef298,
but some external code is still be using it.

This commit reintroduces the method, but we don't deprecated it yet !

Fixes h5py/h5py#2253
@Carreau Carreau merged commit a260666 into ipython:main Apr 28, 2023
20 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/ipython that referenced this pull request Apr 28, 2023
Carreau added a commit that referenced this pull request Apr 28, 2023
…ethod for backward compatibility.) (#14048)

Backport PR #14033: MAINT: reintroduce a OInfo get method for backward
compatibility.
@Carreau Carreau deleted the fix-h5py branch May 31, 2024 13:18
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.

h5py.ipy_completer compatibility with ipython 8.12
2 participants