Skip to content

importlib resource API isn't deprecated #10593

Closed

Description

@Timmmm

Bug description

Pylint complains about some functions like importlib.resources.read_text being deprecated. As I understand it what happened was there was a PR to deprecate them for Python 3.13, then it was reverted so they were un-deprecated, but they forgot to remove the deprecation message from the release notes.

See this comment and the links in it.

Pylint output

It prints a deprecation warning for those functions. I don't have the output to hand but you know what I mean.

Expected behavior

No deprecation message.

Pylint version

3.3.1

Activity

  1. added
    Needs triage 📥Just created, needs acknowledgment, triage, and proper labelling
    on Sep 26, 2025
  2. added
    Good first issueFriendly and approachable by new contributors
    False Positive 🦟A message is emitted but nothing is wrong with the code
    Needs PRThis issue is accepted, sufficiently specified and now needs an implementation
    and removed
    Needs triage 📥Just created, needs acknowledgment, triage, and proper labelling
    on Sep 26, 2025
  3. cdce8p commented on Sep 28, 2025

    @cdce8p
    Member

    Looks like we need to update these here and move / remove some entries.

    (3, 9, 0): {
    "binascii.b2a_hqx",
    "binascii.a2b_hqx",
    "binascii.rlecode_hqx",
    "binascii.rledecode_hqx",
    "importlib.resources.contents",
    "importlib.resources.is_resource",
    "importlib.resources.open_binary",
    "importlib.resources.open_text",
    "importlib.resources.path",
    "importlib.resources.read_binary",
    "importlib.resources.read_text",
    },

    https://docs.python.org/3/library/importlib.resources.html

  4. Akshay9715 commented on Sep 29, 2025

    @Akshay9715
    Contributor

    Hi 👋, I'd like to work on this issue. I will update the stdlib checker to stop flagging
    importlib.resources.read_text as deprecated and add tests. Please assign it to me if that's okay.
    Thank you!

  5. added this to the 3.3.9 milestone on Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

False Positive 🦟A message is emitted but nothing is wrong with the codeGood first issueFriendly and approachable by new contributorsHelp wanted 🙏Outside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions