[skip ci] fix type hints of OuptutHandlers based on its base class.#3480
Conversation
|
Thanks for the PR @gabrielfruet ! |
|
@rchen152 we have the following pyrefly issue on this PR: is it pyrefly related or fixed or should we add an ignore comment? Thanks! I checked matplotlib API: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.legend.html |
|
@vfdev-5 Thank you! I could also make that improvement. I'll start with the BaseOutputHandler derived classes. Are we supporting <3.10? |
Thanks @gabrielfruet! Let's do that in a follow-up PRs.
python 3.9 is EOL, min supported python version is 3.10 |
|
@vfdev-5 Also, if you could give some help. Didn't understand why these others GH actions like CPU tests ran with error. I didn't see any. Only on pyrefly. |
|
We can ignore them for now. pytorch-nightly on 3.11+ started failing on some distrbuted metrics tests... |
The error is due to this type signature in With that said, I checked the description of I'll raise this with the other pyrefly devs. In the meantime, I think you can safely |
vfdev-5
left a comment
There was a problem hiding this comment.
LGTM, thanks @gabrielfruet !
Fixes #3479
Fix type hints for derived classes of BaseOutputHandler. They can receive
None | List[str] | str, but their type hints only forNone | List[str].