Skip to content

Commit d7cc778

Browse files
conversions/decimal_to_binary.py: Add type hints (TheAlgorithms#2001)
* A .py file to covert a base to any new base(2-18) * Update base_changer.py * Added type-hints. * Delete base_changer.py
1 parent b080a5e commit d7cc778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conversions/decimal_to_binary.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Convert a Decimal Number to a Binary Number."""
22

33

4-
def decimal_to_binary(num):
4+
def decimal_to_binary(num: int) -> str:
55

66
"""
77
Convert a Integer Decimal Number to a Binary Number as str.

0 commit comments

Comments
 (0)