[mypy] Fix type annotations for boolean_algebra/quine_mc_cluskey.py (#5489)

* Add missing type annotation

* Fix conversion bug

This failed when called with the documented example of `1.5` and was correctly
pointed out by `mypy --strict`
This commit is contained in:
Erwin Junge 2021-10-22 11:45:19 +02:00 committed by GitHub
parent 83a63d9c22
commit 08254eb2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,10 +146,10 @@ def prime_implicant_chart(
return chart
def main():
def main() -> None:
no_of_variable = int(input("Enter the no. of variables\n"))
minterms = [
int(x)
float(x)
for x in input(
"Enter the decimal representation of Minterms 'Spaces Separated'\n"
).split()