Lunderberg opened a new pull request, #10906: URL: https://github.com/apache/tvm/pull/10906
Previously, optional arguments were identified by comparing the string `"typing.Optional"`. This misses some cases, as `Optional[int]` expands to `Union[int, NoneType]`. This commit updates the check to identify `typing.Union` annotations where one of the types is `NoneType`. -- 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]
