Skip to content

Conversation

@Avasam
Copy link
Contributor

@Avasam Avasam commented May 7, 2024

Summary of changes

Removed typing_extensions from vendored dependencies.

All vendored dependencies put typing_extensions behind a TYPE_CHECKING block, in a stub file, or behind a Python 3.8+ check. Hence it is no longer necessary to vendor typing_extensions. (and if a vendored library re-introduce a problem importing it at runtime, we can either raise an issue upstream and wait for the next version, or re-introduce a patch to make it conditional rather than use a vendor version).

Closes #4324

Pull Request Checklist

  • Changes have tests (expecting existing tests to cover this change)
  • News fragment added in newsfragments/.
    (See documentation for details)
@abravalheri
Copy link
Contributor

Thank you very much @Avasam. I am in favour of simplifying as much as we can the vendoring.

There is a risk it might reappear when we update the vendored dependencies, but should be good for now.

@abravalheri abravalheri merged commit fdd50e4 into pypa:main May 9, 2024
@Avasam Avasam deleted the removing-typing_extensions-from-_vendor branch May 9, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants