-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix and enable mypy return check #9109
Merged
Merged
Changes from 45 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
1ded5ef
fix and enable mypy return check
joejuzl 897122a
Merge remote-tracking branch 'origin/main' into 8242-mypy_return_issues
joejuzl b21bbd2
lint
joejuzl 176c04e
test fixes
joejuzl cc43663
lint
joejuzl 299fa7e
sanic import fix
joejuzl 2fc4f3f
Merge remote-tracking branch 'origin/main' into 8242-mypy_return_issues
joejuzl 29f5250
use normal OrderedDict
joejuzl f85c84d
ci fixes
joejuzl 5fe31f9
enable return check again
joejuzl f462eb6
fix return types in `Message` by declaring new variables
wochinge 3b0f98a
fix return types in `model_data_utils` by declaring new variables
wochinge 1e9ca83
make type explicit to fix `return` type error
wochinge 2161830
fix `return` value issues in `models` module
wochinge f921848
fix wrong type annotation
wochinge ab9b695
specify correct return type
wochinge 1067054
fix typing issues in `rasa_yaml`
wochinge f25070e
add missing return statements
wochinge 6f83b30
return empty training data instead of implicit `None`
wochinge e11b4be
cover default case
wochinge 4545654
fix context manager related issues
wochinge eb52955
use correct ContextManager type annotation
wochinge a4229ed
fix docstring errors by making fns protected
wochinge 787cda9
add missing docstrings
wochinge 8e1ed49
fix remaining `index` errors
wochinge 543ff31
fixes
joejuzl f72b9ed
Merge pull request #9054 from RasaHQ/8242-mypy_return_issues-tobias
wochinge e61dd7c
fix context manager type error
wochinge 359641a
add cast
wochinge de278fa
remove unused method
wochinge 3e6c32e
fix component return types
wochinge da09370
add default to avoid `None` case
wochinge 50c78d1
use correct return type
wochinge 613bac9
add type check
wochinge 7ff1b0a
make code more verbose to help mypy
wochinge db04ffe
add metaclass workaround
wochinge a7f9922
black format
wochinge ca83b0f
black format
wochinge 0ee9595
ignore Flask error
wochinge 76ee0dd
explicitly add `mypy-extensions` to pyproject
wochinge 15a71b3
remove blank line after docstring
wochinge bce9c2d
also enable 'return' code
wochinge ea2dda4
make type explicit
wochinge 190981c
add default
wochinge 845d4d6
fix sklearn policy load
joejuzl dc1a173
remove `Optional`
wochinge ca403a3
Merge branch 'main' into 8242-mypy_return_issues
wochinge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very sure what
do_compare_training
does, but it also returnsNone
, is there any reason why it shouldn't bereturn rasa.utils.common.run_in_loop(...)
?