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

🔧 Loosen version constraints on typing-extensions #53250

Conversation

connorbrinton
Copy link

These changes loosen the version constraints on typing-extensions to allow TensorFlow to be installed alongside packages that require typing-extensions >= 3.10, such as newer versions of Black and PyLint.

Previously TensorFlow required a typing-extensions version in the 3.7.x series. However, the newer 3.10.x series is fully backwards-compatible with the 3.7.x series (and there are no 3.8.x or 3.9.x series). Therefore, these changes allow typing-extensions to be installed using either the 3.7.x or 3.10.x series.

In order to ensure that any future backwards-incompatible changes in the typing-extensions package don't cause issues, TensorFlow's dependency on typing-extensions does not allow versions from the 3.11.x series or beyond (< 3.11).

These changes loosen the version constraints on `typing-extensions` to
allow TensorFlow to be installed alongside packages that require
`typing-extensions >= 3.10`, such as newer versions of Black and PyLint.

Previously TensorFlow required a `typing-extensions` version in the
`3.7.x` series. However, the newer `3.10.x` series is fully
backwards-compatible with the `3.7.x` series (there are no `3.8.x` or
`3.9.x` series). Therefore, these changes allow `typing-extensions` to
be installed using either the `3.7.x` or `3.10.x` series.

In order to ensure that any future backwards-incompatible changes in the
`typing-extensions` package don't cause issues, TensorFlow's dependency
on `typing-extensions` does not allow versions from the `3.11.x` series
or beyond (`< 3.11`).

Fixes tensorflow#51743.
@google-cla google-cla bot added the cla: yes label Nov 30, 2021
@mihaimaruseac mihaimaruseac added the waiting for patch release PR will be reviewed and merged only if we do a patch release since PR is not on master branch label Nov 30, 2021
@gbaned gbaned self-assigned this Dec 1, 2021
@gbaned gbaned assigned mihaimaruseac and unassigned gbaned Dec 1, 2021
@gbaned gbaned added the size:XS CL Change Size: Extra Small label Dec 3, 2021
@mihaimaruseac mihaimaruseac merged commit 48d284b into tensorflow:r2.6 Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes size:XS CL Change Size: Extra Small waiting for patch release PR will be reviewed and merged only if we do a patch release since PR is not on master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants