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

Expose utils.NormalizedName #495

Closed
Tracked by #526
brettcannon opened this issue Dec 15, 2021 · 1 comment · Fixed by #565
Closed
Tracked by #526

Expose utils.NormalizedName #495

brettcannon opened this issue Dec 15, 2021 · 1 comment · Fixed by #565

Comments

@brettcannon
Copy link
Member

brettcannon commented Dec 15, 2021

utils.canonicalize_name() returns a NormalizedName which is bound to str. For typed code it would be great to be able to statically check that code which is expecting a normalized name is only being given one.

@pradyunsg
Copy link
Member

Yea, it was because of Python 2 IIRC.

@brettcannon brettcannon mentioned this issue Mar 22, 2022
6 tasks
brettcannon added a commit to brettcannon/packaging that referenced this issue Jun 29, 2022
pradyunsg pushed a commit that referenced this issue Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants