CanCLID / canto-filter

粵文語料篩選器 Cantonese text filter
https://pypi.org/project/canto-filter/
MIT License
33 stars 4 forks source link

Return result in StrEnum #9

Closed ayaka14732 closed 4 months ago

ayaka14732 commented 4 months ago

Use StrEnum in Python 3.11+ to return the result

laubonghaudoi commented 4 months ago

So StrEnum a new Python feature introduced in 3.11 and currently the package is covering support from 3.6+. This means we will drop support for older Python versions.

graphemecluster commented 4 months ago

I would suggest extending the class with (str, Enum) instead or polyfilling by the StrEnum package for better compatibility.

P.S. Our python-jyutping currently does not extend anything at all.