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

Fix "accepts only single type" error messages #1130

Merged
merged 1 commit into from Apr 11, 2022
Merged

Conversation

JelleZijlstra
Copy link
Member

  • Add "a" to make the message grammatical
  • Add a trailing period because _type_check adds another sentence after it. For example, Unpack[3] on 3.10 currently fails with TypeError: Unpack accepts only single type Got 3..
  • Use an f-string

- Add "a" to make the message grammatical
- Add a trailing period because _type_check adds another sentence after it. For example, `Unpack[3]` on 3.10 currently fails with `TypeError: Unpack accepts only single type Got 3.`.
@srittau srittau merged commit cba3a90 into master Apr 11, 2022
@srittau srittau deleted the JelleZijlstra-patch-2 branch April 11, 2022 17:37
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

Successfully merging this pull request may close these issues.

None yet

2 participants