python-poetry / tomlkit

Style-preserving TOML library for Python
MIT License
701 stars 99 forks source link

fix: register encoder's doc incorrectly mentions TypeError #384

Closed mathieu-lemay closed 2 weeks ago

mathieu-lemay commented 4 weeks ago

Since #358, custom encoders are expected to raise a ConvertError instead of a TypeError, but the docstring of register_encoder still mentions TypeError. Fix this to mention ConvertError instead.