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

Remove deprecated @override__dir__ #106

Closed

Conversation

jdavies-st
Copy link
Contributor

@jdavies-st jdavies-st commented Dec 12, 2022

This PR fixes a deprecation warning now being emitted by astropy.

stdatamodels/properties.py:270: AstropyDeprecationWarning: http://bugs.python.org/issue12166 is resolved. See docstring for alternatives.
  @override__dir__

This is no longer needed for a very long time now in Python, i.e.:

https://github.com/astropy/astropy/blob/d31499bb3d4d4cf02981c9b7fdd35bc37c62ad54/astropy/utils/compat/misc.py#L46-L54

Checklist

  • added entry in CHANGES.rst (either in Bug Fixes or Changes to API)
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)

@jdavies-st
Copy link
Contributor Author

...and it looks like CI is broken in this package. Unrelated to this PR.

@jdavies-st
Copy link
Contributor Author

See #107 for the fix to the CI.

@jdavies-st
Copy link
Contributor Author

And I now realize this is a duplicate of #103. Doh! 🥈

@nden
Copy link
Collaborator

nden commented Dec 18, 2022

Ah, yes, a duplicate of #103 . @jdavies-st Do you want to review #103?

@jdavies-st
Copy link
Contributor Author

#103 reviewed and approved. Closing this one in favor of that one.

@jdavies-st jdavies-st closed this Dec 19, 2022
@jdavies-st jdavies-st deleted the remove-override-dir branch December 19, 2022 12:15
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