Overload bool.__new/bool__ for Literal bools #34710
tests.yml
on: pull_request
Check typeshed structure
11s
mypy: Run test cases
6m 54s
stub_uploader tests
5m 16s
Matrix: mypy: Check stubs
Matrix: pyright: Run test cases
Annotations
45 errors
|
pyright: Run test cases (Darwin, 3.11)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.13)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.14)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.13)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.10)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.12)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.10)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.9)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.14)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.11)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.10)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.11)
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.12)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.14)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.9)
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 (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#L5
"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#L4
"assert_type" mismatch: expected "Literal[False]" but received "bool" (reportAssertTypeFailure)
|
|
mypy: Check stubs (darwin, 3.11)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.12)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.9)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.13)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.11)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.9)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.11)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.10)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.9)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.10)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.13)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.14)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.14)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.14)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.10)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.12)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.12)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.13)
Process completed with exit code 1.
|