From d7cc778092ab406cd9269845262e4fc4952c51bc Mon Sep 17 00:00:00 2001 From: Shivam Verma <50954641+sarcastic-verma@users.noreply.github.com> Date: Tue, 2 Jun 2020 20:17:10 +0530 Subject: [PATCH] conversions/decimal_to_binary.py: Add type hints (#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 --- conversions/decimal_to_binary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conversions/decimal_to_binary.py b/conversions/decimal_to_binary.py index ad4ba1667..e6821c09b 100644 --- a/conversions/decimal_to_binary.py +++ b/conversions/decimal_to_binary.py @@ -1,7 +1,7 @@ """Convert a Decimal Number to a Binary Number.""" -def decimal_to_binary(num): +def decimal_to_binary(num: int) -> str: """ Convert a Integer Decimal Number to a Binary Number as str.