Open bertiqwerty opened 6 months ago
from Behrang in https://github.com/experimental-design/bofire/pull/279#discussion_r1452125612
When I understood this correctly,
# type: ignore
correctly, it operates on the line level. We could at some point activatereportUnnecessaryTypeIgnoreComment
in Pyright's options. See https://github.com/microsoft/pyright/blob/main/docs/comments.md#line-level-diagnostic-suppression
from Johannes in https://github.com/experimental-design/bofire/pull/279#issuecomment-1892147019
Note that I moved the pyright config some time ago into the
pyproject.toml
, so the new flag for showing the unnecessaryignore
statements should also go there, I think:
Hi Behrang,
I am in favor of using the reportUnnecessaryTypeIgnoreComment
keyword and also to replace black by ruff-format!
Best,
Johannes
@bertiqwerty Are you still working on this issue? Following #383, there are now many unnecessary # type: ignores
in bofire. I would be happy to help to remove some of these, and continue working on the typing system to remove as many of these comments as we can!
Hi Toby, this currently does not have a high priority for me. If you want to give it a try, feel free. You should not continue on MR #336 and restart from scratch, since a lot has changed recently.
Pyright and Ruff are out-dated. We can also try to replace Black by Ruff-Format and have one dependency less.