Skip to content

Commit 4b371c9

Browse files
authored
Enhance docstring for is_trimorphic function
Added parameter and return type documentation to is_trimorphic function.
1 parent 13378dd commit 4b371c9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

trimorphic_number.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def is_trimorphic(number: int) -> bool:
1010
"""
1111
Checks if a number is a Trimorphic number.
1212
13+
:param number: The number to check
14+
:return: True if the number is trimorphic, False otherwise
15+
:raises ValueError: If the input number is negative
16+
1317
>>> is_trimorphic(0)
1418
True
1519
>>> is_trimorphic(1)

0 commit comments

Comments
 (0)