Skip to content

[mypy] Add/fix type annotations for boolean_algebra #4172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[mypy] Add/fix type annotations for boolean_algebra
  • Loading branch information
rajayush213 committed Feb 2, 2021
commit dc17c67d7538dfeefc5792c00a7dabcbdac51ebc
5 changes: 4 additions & 1 deletion boolean_algebra/quine_mc_cluskey.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import List


def compare_string(string1: str, string2: str) -> str:
"""
>>> compare_string('0010','0110')
Expand Down Expand Up @@ -128,7 +129,9 @@ def selection(chart: List[List[int]], prime_implicants: List[str]) -> List[str]:
chart[j][i] = 0


def prime_implicant_chart(prime_implicants: List[str], binary: List[str]) -> List[List[int]]:
def prime_implicant_chart(
prime_implicants: List[str], binary: List[str]
) -> List[List[int]]:
"""
>>> prime_implicant_chart(['0.00.01.5'],['0.00.01.5'])
[[1]]
Expand Down