barrust / pyspellchecker

Pure Python Spell Checking http://pyspellchecker.readthedocs.io/en/latest/
MIT License
691 stars 101 forks source link

fixed an error in load_file function #152

Closed oren-ron closed 11 months ago

oren-ron commented 11 months ago

151

The line I changed fixed the error for me: "..\spellchecker\utils.py", line 105, in load_file if filename[-3:].lower() == ".gz":


TypeError: 'WindowsPath' object is not subscriptable
barrust commented 11 months ago

This error is because the library doesn't officially offer support for Path objects. I am working on a full solution to ensure that path objects are supported in full.

barrust commented 11 months ago

closing this in favor of #156