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
This commit is contained in:
Shivam Verma 2020-06-02 20:17:10 +05:30 committed by GitHub
parent b080a5e027
commit d7cc778092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.