-
Notifications
You must be signed in to change notification settings - Fork 289
Fix type hint inconsistencies and improve type precision #1232
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
178aa7e
Initial plan
Copilot d2baeca
Fix type hints in util module
Copilot 2bda73f
Fix type hints in tokenize module
Copilot 6e8b335
Fix type hints in transliterate module
Copilot 2e7fecf
Fix type hints in ulmfit, lm, and tools modules
Copilot cb8f3aa
Fix type hints in word_tokenization.py
Copilot 2578f99
Fix type hints in augment/word2vec/core.py
Copilot b0aec58
Fix return type in augment/word2vec/bpemb_wv.py
Copilot c413e65
Add type annotation for sent2 in wangchanberta.py
Copilot 55787f2
Fix type hints in parse/core.py
Copilot 48c3b46
Add type annotations in tag/_tag_perceptron.py
Copilot ff20049
Fix type hints in tag/named_entity.py
Copilot 6a645fb
Fix type hints in translate/tokenization_small100.py
Copilot f6bf7e9
Replace | union syntax with Union for Python 3.9 compatibility
Copilot 04406ec
Fix incompatible return value and argument type issues
Copilot e94f53d
Fix type compatibility in corpus/common.py: use Any for mixed-type di…
Copilot eb8d1b1
Fix None argument issues in tag/unigram.py and tag/perceptron.py
Copilot a888187
Fix return type and type annotation issues in tag/thainer.py and tag/…
Copilot 3352bbb
Fix return type and argument type issues in transliterate/w2p.py and …
Copilot cc3ed7b
Fix None argument to join in translate/en_th.py
Copilot 48f57ce
Fix argument type compatibility in summarize/keybert.py
Copilot 20ed024
Fix Iterable vs list argument type in corpus/util.py
Copilot 6903495
Fix test and remove unnecessary type: ignore comments
Copilot defd6be
Fix import issues in tools/path.py
Copilot bb496fc
Add clarifying comment for importlib_resources type: ignore
Copilot 48f1f7f
Fix imports
bact 9d44ca7
Revert "Fix imports"
bact e626bc0
Fix imports
bact 9c25660
Add importlib_resources import
bact 3b548ed
Fix type annotations and ruff errors based on review feedback
Copilot 07f16b1
Improve type precision per bot review feedback
Copilot ba221c3
Fix few lint issues
bact 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.