Skip to content

Commit 83346fe

Browse files
authored
Apply suggestion from @cclauss
1 parent 273af2c commit 83346fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎conversions/roman_numerals.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def int_to_roman(number: int) -> str:
6363
...
6464
TypeError: int_to_roman only accepts integers, got bool
6565
"""
66-
if not isinstance(number, int):
66+
if isinstance(number, bool) or not isinstance(number, int):
6767
msg = f"int_to_roman only accepts integers, got {type(number).__name__}"
6868
raise TypeError(msg)
6969
if not 1 <= number <= 3999:

0 commit comments

Comments
 (0)