Fix type annotations for bit manipulation algorithms (#4056)

This commit is contained in:
Dhruv Manilawala
2020-12-24 18:16:44 +05:30
committed by GitHub
parent f3ba9b6c50
commit 8f47d9f807
4 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# https://www.tutorialspoint.com/python3/bitwise_operators_example.htm
def binary_or(a: int, b: int):
def binary_or(a: int, b: int) -> str:
"""
Take in 2 integers, convert them to binary, and return a binary number that is the
result of a binary or operation on the integers provided.