Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@

# No errors here, will be reported separately by bad-string-format-character.
"%b" % b"xx"

# bool is acceptable as int/float/character.
"%d %c %f" % (True, True, True)
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ impl FormatType {
self,
FormatType::Unknown | FormatType::String | FormatType::Repr
),
PythonType::Number(NumberLike::Complex | NumberLike::Bool) => matches!(
PythonType::Number(NumberLike::Complex) => matches!(
self,
FormatType::Unknown | FormatType::String | FormatType::Repr
),
PythonType::Number(NumberLike::Integer) => matches!(
PythonType::Number(NumberLike::Integer | NumberLike::Bool) => matches!(
self,
FormatType::Unknown
| FormatType::String
Expand Down
Loading