Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type errors are hard to read due to unrendered color codes #822

Open
stefan6419846 opened this issue Sep 18, 2024 · 0 comments
Open

Type errors are hard to read due to unrendered color codes #822

stefan6419846 opened this issue Sep 18, 2024 · 0 comments

Comments

@stefan6419846
Copy link

The error messages produced by failing type checks are very hard to read as they contain coloring commands which seem not be rendered correctly and might not even make sense for writing them into log files:

[...]
spdx_tools.common.typing.constructor_type_errors.ConstructorTypeErrors: ["SetterError Package: Method\x1b[1m\x1b[35m spdx_tools.common.typing.dataclass_with_properties.make_setter.set_field()\x1b[0m parameter \x1b[1m\x1b[34mattribution_texts\x1b[0m=\x1b[1m\x1b[31m''\x1b[0m violates type hint \x1b[1m\x1b[32mlist[str]\x1b[0m, as \x1b[1m\x1b[33mstr \x1b[0m\x1b[1m\x1b[31m''\x1b[0m not instance of \x1b[1m\x1b[32mlist\x1b[0m.: "]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant