We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MyPy reports a bunch of typing issues in pythainlp/benchmarks/word_tokenization.py
ref_sample in these two lines for examples, are seen as str and should not have shape attribute.
ref_sample
str
shape
pythainlp/pythainlp/benchmarks/word_tokenization.py
Lines 164 to 165 in 9a1274b
But it looks like from _binary_representation function, it may has a type of ND array.
_binary_representation
However, the _binary_representation type hints and docstring said they are str:
Lines 208 to 221 in 9a1274b
So there're confusions here to be fixed.
Use MyPy to check the code
5
any
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
MyPy reports a bunch of typing issues in pythainlp/benchmarks/word_tokenization.py
Expected results
Current results
ref_sample
in these two lines for examples, are seen asstr
and should not haveshape
attribute.pythainlp/pythainlp/benchmarks/word_tokenization.py
Lines 164 to 165 in 9a1274b
But it looks like from
_binary_representation
function, it may has a type of ND array.However, the
_binary_representation
type hints and docstring said they arestr
:pythainlp/pythainlp/benchmarks/word_tokenization.py
Lines 208 to 221 in 9a1274b
So there're confusions here to be fixed.
Steps to reproduce
Use MyPy to check the code
PyThaiNLP version
5
Python version
any
Operating system and version
any
More info
No response
Possible solution
No response
Files
No response
The text was updated successfully, but these errors were encountered: