Skip to content
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

[Core] Chore: fixed mypy issues for the function decorators #1075

Closed
wants to merge 5 commits into from

Conversation

davorrunje
Copy link
Contributor

@davorrunje davorrunje commented Dec 27, 2023

Why are these changes needed?

Although the project is not checked by mypy, all mypy issues related to function decorators with a rather strict configuration are fixed.

Incorrect typing information causes problems for other developers using mypy to type-check their code. This is not limited to framework developers but to application developers as well.

Related issue number

Checks

@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (f497710) 30.56% compared to head (eb133ca) 40.90%.

Files Patch % Lines
autogen/agentchat/conversable_agent.py 78.26% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1075       +/-   ##
===========================================
+ Coverage   30.56%   40.90%   +10.34%     
===========================================
  Files          30       30               
  Lines        4028     4034        +6     
  Branches      911      962       +51     
===========================================
+ Hits         1231     1650      +419     
+ Misses       2723     2256      -467     
- Partials       74      128       +54     
Flag Coverage Δ
unittests 40.85% <85.29%> (+10.34%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ekzhu ekzhu changed the title Chore: fixed mypy issues for the function decorators [Core] Chore: fixed mypy issues for the function decorators Dec 28, 2023
@ekzhu
Copy link
Collaborator

ekzhu commented Dec 28, 2023

@davorrunje do you think we can perhaps wait for #974 to merge as that involves changes to function utils.

@davorrunje
Copy link
Contributor Author

@ekzhu of course, I'll merge with it and fix conflicts.

@davorrunje
Copy link
Contributor Author

Too many conflicts, I'll just redo it.

@davorrunje davorrunje closed this Feb 1, 2024
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* Fix indentation in documentation

* newline

* version
@davorrunje davorrunje deleted the fix-types branch August 26, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool-usage suggestion and execution of function/tool call
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants