Overload bool.__new/bool__ for Literal bools #34709
Triggered via pull request
January 15, 2026 16:27
Status
Cancelled
Total duration
2m 43s
Artifacts
–
tests.yml
on: pull_request
Check typeshed structure
16s
mypy: Run test cases
2m 33s
stub_uploader tests
2m 38s
Matrix: mypy: Check stubs
Matrix: pyright: Run test cases
Annotations
68 errors
|
pyright: Run test cases (Darwin, 3.11)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.14)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.9)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.12)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.9)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.14)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L16
Argument of type "str" cannot be assigned to parameter "arg1" of type "SupportsRichComparisonT@min" in function "min"
Type "str" is not assignable to type "SupportsRichComparison"
Type "str" is not assignable to type "SupportsRichComparison"
"str" is incompatible with protocol "SupportsDunderLT[Any]"
"__lt__" is an incompatible type
Type "(value: str, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderLT, /) -> SupportsBool"
"str" is incompatible with protocol "SupportsDunderGT[Any]"
"__gt__" is an incompatible type
Type "(value: str, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderGT, /) -> SupportsBool" (reportArgumentType)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L16
"assert_type" mismatch: expected "str" but received "Unknown" (reportAssertTypeFailure)
|
|
pyright: Run test cases (Windows, 3.11)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L15
Argument of type "int" cannot be assigned to parameter "arg2" of type "SupportsRichComparisonT@min" in function "min"
Type "int" is not assignable to type "SupportsRichComparison"
Type "int" is not assignable to type "SupportsRichComparison"
"int" is incompatible with protocol "SupportsDunderLT[Any]"
"__lt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderLT, /) -> SupportsBool"
"int" is incompatible with protocol "SupportsDunderGT[Any]"
"__gt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderGT, /) -> SupportsBool" (reportArgumentType)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L15
Argument of type "int" cannot be assigned to parameter "arg1" of type "SupportsRichComparisonT@min" in function "min"
Type "int" is not assignable to type "SupportsRichComparison"
Type "int" is not assignable to type "SupportsRichComparison"
"int" is incompatible with protocol "SupportsDunderLT[Any]"
"__lt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderLT, /) -> SupportsBool"
"int" is incompatible with protocol "SupportsDunderGT[Any]"
"__gt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderGT, /) -> SupportsBool" (reportArgumentType)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L15
"assert_type" mismatch: expected "int" but received "Unknown" (reportAssertTypeFailure)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L14
Argument of type "bool" cannot be assigned to parameter "arg2" of type "SupportsRichComparisonT@min" in function "min"
Type "bool" is not assignable to type "SupportsRichComparison"
Type "bool" is not assignable to type "SupportsRichComparison"
"bool" is incompatible with protocol "SupportsDunderLT[Any]"
"__lt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderLT, /) -> SupportsBool"
"bool" is incompatible with protocol "SupportsDunderGT[Any]"
"__gt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderGT, /) -> SupportsBool" (reportArgumentType)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L14
Argument of type "bool" cannot be assigned to parameter "arg1" of type "SupportsRichComparisonT@min" in function "min"
Type "bool" is not assignable to type "SupportsRichComparison"
Type "bool" is not assignable to type "SupportsRichComparison"
"bool" is incompatible with protocol "SupportsDunderLT[Any]"
"__lt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderLT, /) -> SupportsBool"
"bool" is incompatible with protocol "SupportsDunderGT[Any]"
"__gt__" is an incompatible type
Type "(value: int, /) -> bool" is not assignable to type "(other: _T_contra@SupportsDunderGT, /) -> SupportsBool" (reportArgumentType)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_min.py#L14
"assert_type" mismatch: expected "bool" but received "Unknown" (reportAssertTypeFailure)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_bool.py#L6
"assert_type" mismatch: expected "Literal[True]" but received "bool" (reportAssertTypeFailure)
|
|
pyright: Run test cases (Linux, 3.13):
stdlib/@tests/test_cases/builtins/check_bool.py#L5
"assert_type" mismatch: expected "Literal[False]" but received "bool" (reportAssertTypeFailure)
|
|
pyright: Run test cases (Linux, 3.14)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.13)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.12)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.10)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.10)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.12)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.13)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.10)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.9)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.11)
Exit code 1
|
|
mypy: Check stubs (darwin, 3.11)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (darwin, 3.11)
The operation was canceled.
|
|
mypy: Check stubs (win32, 3.13)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (win32, 3.13)
The operation was canceled.
|
|
mypy: Check stubs (win32, 3.10)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (win32, 3.10)
The operation was canceled.
|
|
mypy: Check stubs (linux, 3.9)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.9)
The operation was canceled.
|
|
mypy: Check stubs (darwin, 3.9)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (darwin, 3.9)
The operation was canceled.
|
|
mypy: Check stubs (darwin, 3.10)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (darwin, 3.10)
The operation was canceled.
|
|
mypy: Check stubs (linux, 3.12)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.12)
The operation was canceled.
|
|
mypy: Check stubs (linux, 3.11)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.11)
The operation was canceled.
|
|
mypy: Check stubs (win32, 3.11)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (win32, 3.11)
The operation was canceled.
|
|
mypy: Check stubs (linux, 3.13)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.14)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.13)
The operation was canceled.
|
|
mypy: Check stubs (darwin, 3.14)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.14)
The operation was canceled.
|
|
mypy: Check stubs (darwin, 3.14)
The operation was canceled.
|
|
mypy: Check stubs (win32, 3.12)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (win32, 3.12)
The operation was canceled.
|
|
mypy: Check stubs (darwin, 3.13)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (darwin, 3.13)
The operation was canceled.
|
|
mypy: Check stubs (linux, 3.10)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (darwin, 3.12)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (linux, 3.10)
The operation was canceled.
|
|
stub_uploader tests
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (darwin, 3.12)
The operation was canceled.
|
|
stub_uploader tests
The operation was canceled.
|
|
mypy: Check stubs (win32, 3.14)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (win32, 3.14)
The operation was canceled.
|
|
mypy: Run test cases
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Check stubs (win32, 3.9)
Canceling since a higher priority waiting request for Test-patch-4 exists
|
|
mypy: Run test cases
The operation was canceled.
|
|
mypy: Check stubs (win32, 3.9)
The operation was canceled.
|
|
Test
Canceling since a higher priority waiting request for Test-patch-4 exists
|