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

Alias for TOMLDecodeError → TomlDecodeError #167

Closed
frenzymadness opened this issue Jan 11, 2022 · 1 comment
Closed

Alias for TOMLDecodeError → TomlDecodeError #167

frenzymadness opened this issue Jan 11, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@frenzymadness
Copy link

Hello.

We are writing tool called micropipenv (https://github.com/thoth-station/micropipenv) and we are trying to make it compatible with various toml backends.

Would it make sense to create an alias for TOMLDecodeError - TomlDecodeError to make it the same as it is in this implementation: https://github.com/uiri/toml/blob/3f637dba5f68db63d4b30967fedda51c82459471/toml/__init__.py#L15 ?

After that, it'd be possible to import toml/tomli and use the same exception name no matter what implementation is available.

What do you think about it?

@hukkin
Copy link
Owner

hukkin commented Jan 11, 2022

Hey thanks for the issue!

Please read #88

@hukkin hukkin closed this as completed Jan 11, 2022
@hukkin hukkin added the duplicate This issue or pull request already exists label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants