mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
[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:
parent
83a63d9c22
commit
08254eb2e4
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user