Skip to content

Commit d953d37

Browse files
authored
Update conversions/roman_numerals.py
1 parent 52bf749 commit d953d37

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) or isinstance(number, bool):
66+
if not isinstance(number, (bool, 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)