Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve misleading message in Enum() (#5317)#14590

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hauntsaninja merged 3 commits intopython:masterfromMestreLion:patch-1
Feb 2, 2023
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update messages in Enum() tests
  • Loading branch information
@MestreLion
MestreLion authoredFeb 2, 2023
commit00d420d9b84dae81da9e32593aba6990e5221d15
8 changes: 4 additions & 4 deletionstest-data/unit/check-enum.test
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -482,13 +482,13 @@ W.c
[typing fixtures/typing-medium.pyi]
[out]
main:2: error: Too few arguments for Enum()
main:3: error:Enum() expects astring, tuple, list or dictliteralas the second argument
main:3: error:Non-literalstring, tuple, list or dict as the second argument of Enum() is not supported
main:4: error: Too many arguments for Enum()
main:5: error:Enum() expects astring, tuple, list or dictliteralas the second argument
main:5: error:Non-literalstring, tuple, list or dict as the second argument of Enum() is not supported
main:5: error: Name "foo" is not defined
main:7: error:Enum() expects astring, tuple, list or dictliteralas the second argument
main:7: error:Non-literalstring, tuple, list or dict as the second argument of Enum() is not supported
main:8: error: Too few arguments for IntEnum()
main:9: error:IntEnum() expects astring, tuple, list or dictliteralas the second argument
main:9: error:Non-literalstring, tuple, list or dict as the second argument of IntEnum() is not supported
main:10: error: Too many arguments for IntEnum()
main:11: error: Enum() needs at least one item
main:12: error: Enum() needs at least one item
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp