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

consolidate literal bool argument error messages#14693

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
Show file tree
Hide file tree
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
fix tests
  • Loading branch information
@wesleywright
wesleywright committedFeb 13, 2023
commit21f332fd4ec77395e866a063af6b54f478c1295c
2 changes: 1 addition & 1 deletiontest-data/unit/check-attr.test
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -153,7 +153,7 @@ import attr
x = True
@attr.s(cmp=x) # E: "cmp" argument must be a True, False, or None literal
class A:
a = attr.ib(init=x) # E: "init" argument must be a True, False,orNone literal
a = attr.ib(init=x) # E: "init" argument must be a TrueorFalse literal
[builtins fixtures/bool.pyi]

[case testAttrsInitFalse]
Expand Down
4 changes: 2 additions & 2 deletionstest-data/unit/check-typeddict.test
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1084,8 +1084,8 @@ reveal_type(d) \

[case testTypedDictWithInvalidTotalArgument]
from mypy_extensions import TypedDict
A = TypedDict('A', {'x': int}, total=0) # E:TypedDict()"total" argument must be True or False
B = TypedDict('B', {'x': int}, total=bool) # E:TypedDict()"total" argument must be True or False
A = TypedDict('A', {'x': int}, total=0) # E: "total" argument must beaTrue or False literal
B = TypedDict('B', {'x': int}, total=bool) # E: "total" argument must beaTrue or False literal
C = TypedDict('C', {'x': int}, x=False) # E: Unexpected keyword argument "x" for "TypedDict"
D = TypedDict('D', {'x': int}, False) # E: Unexpected arguments to TypedDict()
[builtins fixtures/dict.pyi]
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp