Skip to content

Fix "accepts only single type" error messages#1130

Merged
srittau merged 1 commit intomasterfrom
JelleZijlstra-patch-2
Apr 11, 2022
Merged

Fix "accepts only single type" error messages#1130
srittau merged 1 commit intomasterfrom
JelleZijlstra-patch-2

Conversation

@JelleZijlstra
Copy link
Copy Markdown
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.

2 participants