• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PyThaiNLP / pythainlp / 21622176449
66%
dev: 67%

Build:
Build:
LAST BUILD BRANCH: copilot/remove-lekcut-insert-deepcut-onnx
DEFAULT BRANCH: dev
Ran 03 Feb 2026 08:14AM UTC
Jobs 1
Files 191
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Feb 2026 08:07AM UTC coverage: 65.798% (-0.07%) from 65.869%
21622176449

Pull #1263

github

Copilot
Use 'import as' to avoid type: ignore[assignment] for import shadowing

Instead of using `# type: ignore[assignment]` when importing different
segment functions with the same name, use unique aliases with 'import as':
- from pythainlp.tokenize.attacut import segment as attacut_segment
- from pythainlp.tokenize.sefr_cut import segment as sefrcut_segment

This eliminates the need for type: ignore comments while making the code
more explicit about which segment function is being used in each case.

Benefits:
- No type: ignore[assignment] needed for import shadowing
- More explicit and readable code
- Mypy can properly track all imports
- Easier to debug which tokenizer is being used

Co-authored-by: bact <128572+bact@users.noreply.github.com>
Pull Request #1263: Add 100% type hints to pythainlp.tokenize submodule

63 of 99 new or added lines in 14 files covered. (63.64%)

5708 of 8675 relevant lines covered (65.8%)

0.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
84.73
-0.4% pythainlp/tokenize/core.py
8
70.73
-15.93% pythainlp/tokenize/nlpo3.py
4
0.0
0.0% pythainlp/tokenize/wtsplit.py
3
0.0
0.0% pythainlp/tokenize/deepcut.py
2
0.0
0.0% pythainlp/tokenize/attacut.py
2
0.0
0.0% pythainlp/tokenize/oskut.py
2
0.0
0.0% pythainlp/tokenize/sefr_cut.py
Jobs
ID Job ID Ran Files Coverage
1 21622176449.1 03 Feb 2026 08:14AM UTC 191
65.8
GitHub Action Run
Source Files on build 21622176449
  • Tree
  • List 191
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1263
  • PR Base - dev (#21619046195)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc