-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Feature Request]: fixing type annotations #1462
Comments
This is a lot! Do you think there is a way for us to fix all these errors incrementally? |
@ekzhu yes, I would go file by file per PR (or a few related ones). I am actually quite fast in such things, I could finish it all in a week or so. |
I have noticed that mypy config your PRs @davorrunje. Before I saw this issue I went ahead and opened a PR to add that config to main to make it easier to tackle these type issues. I am 100% in agreeance we need to fix these type issues and the longer we wait the worse it is going to get. I am very happy to help out in fixing these too, and I don't think it will take that long. I started small with math_utils.py here #1544 If you don't mind I'll assign myself to this issue in addition so I can help out with this task |
this looks done to me |
Is your feature request related to a problem? Please describe.
When extending the framework, developers use typing information from existing code. However, this information is sometimes incomplete (e.g. parameters having type annotations
List
without specifying if is it a list of strings or dictionaries) or sometimes even wrong (functions change over time and sometimes type annotations are not properly updated). It also makes testing difficult because it is not always clear which cases need to be checked.A good way to enforce correctness of the type annotations would be to ensure mypy check passes. Currently, running it on autogen with the configuration below yields over 1000 errors.
Describe the solution you'd like
Additional context
No response
The text was updated successfully, but these errors were encountered: