Skip to content

Commit 08254eb

Browse files
authored
[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`
1 parent 83a63d9 commit 08254eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boolean_algebra/quine_mc_cluskey.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ def prime_implicant_chart(
146146
return chart
147147

148148

149-
def main():
149+
def main() -> None:
150150
no_of_variable = int(input("Enter the no. of variables\n"))
151151
minterms = [
152-
int(x)
152+
float(x)
153153
for x in input(
154154
"Enter the decimal representation of Minterms 'Spaces Separated'\n"
155155
).split()

0 commit comments

Comments
 (0)