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

PyThaiNLP / pythainlp / 21622176449 / 1
66%
dev: 67%

Build:
Build:
LAST BUILD BRANCH: copilot/remove-lekcut-insert-deepcut-onnx
DEFAULT BRANCH: dev
Ran 03 Feb 2026 08:14AM UTC
Files 191
Run time 3s
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.1

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

5708 of 8675 relevant lines covered (65.8%)

0.66 hits per line

Source Files on job 21622176449.1
  • Tree
  • List 191
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21622176449
  • e4e46cd1 on github
  • Prev Job for on copilot/add-type-hints-to-tokenize (#21619046195.1)
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