jrmccluskey opened a new pull request, #40747:
URL: https://github.com/apache/beam/pull/40747
Use of `from future import __annotations__` created a case where type hint
annotations passed through `functools.partial()` invocations failed. Future
annotations convert all type hints to strings before processing, and when
evaluated by the new type checking route introduced in #40625 the actual type
was not getting resolved back to the underlying type, leaving the annotation as
a string. This caused check failures, as the expected type in the type check
code was being produced by IOHints.from_callable and resolved the string to the
underlying type. This bug only impacts runtime environments that import `from
future import __annotations__` and Python 3.14+.
<!--
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
- [ ] Replace these instructions with a description of your change and why
you have made it.
- [ ] Mention the appropriate issue in your description (for example:
`addresses #123` or `fixes #456`).
- [ ] Update `CHANGES.md` with noteworthy changes.
See [CONTRIBUTING.md]() for more details.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]