Skip to content

Reminder: remove astropy.cosmology._utils.deprecated_keywords for astropy 8.0.0 #16614

Closed

Description

@neutrinoceros

#16597 introduces a private decorator deprecated_keywords that's meant to ease transitioning positional-or-keyword arguments to positional-only without a sudden API break.
The deprecations introduced in that PR are to land in astropy 7.0.0 .

This issue is to remind ourselves of what should be cleaned after 8.0.0 is branched out:

  • all decorators @deprecated_keywords can be removed and targeted arguments should be made positional-only at the same time (add , / after the last argument marked as a deprecated keyword and before the first that wasn't)
  • astropy.cosmology._utils.deprecated_keywords and associated tests can be removed
  • astropy/cosmology/_signature_deprecations.c, astropy/cosmology/setup_packages.py and licenses/POSITIONAL_DEFAULTS.rst can be removed

Activity

  1. pllim commented on Jun 26, 2024

    @pllim
    Member

    I think these should also happen together:

    • Remove "positional defaults" license file from licenses.
    • Put a / in the affected function signatures to ensure z cannot be passed as keyword.
  2. added
    API changePRs and issues that change an existing API, possibly requiring a deprecation period
    on Jun 26, 2024
  3. neutrinoceros commented on Jun 26, 2024

    @neutrinoceros
    ContributorAuthor

    Your second point is included in my first (I'll clarify), but I didn't think about the license file, thank you !

  4. NathanMuniz18 commented on Oct 9, 2024

    @NathanMuniz18

    hello guys can i try to help on this?

  5. neutrinoceros commented on Oct 9, 2024

    @neutrinoceros
    ContributorAuthor

    Thanks for offering @NathanMuniz18, but this needs to wait until astropy v7.0.x is branched out, which is not expected to happen before the end of the month. See https://github.com/astropy/astropy/wiki/Release-Calendar

    If you're looking to contribute, please have a look at https://www.astropy.org/contribute.html#code, which has pointers to help you discover manageable issues. Thank you !

  6. NathanMuniz18 commented on Oct 9, 2024

    @NathanMuniz18

    it's okay i'll look for other issue on link, thanks for answer

  7. pllim commented on Oct 9, 2024

    @pllim
    Member

    this needs to wait until astropy v7.0.x is branched out

    Longer than that. Also have to wait for v7.1.x and be sure then main is actually going to be v8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API changePRs and issues that change an existing API, possibly requiring a deprecation periodRefactoringcosmology

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions