Skip to content

Commit

Permalink
Fix num_neighbours type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhiggott committed Jun 2, 2022
1 parent 55722d6 commit 9ff3966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatching/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def num_detectors(self) -> int:

def decode(self,
z: Union[np.ndarray, List[int]],
num_neighbours: int = 30,
num_neighbours: Union[int, None] = 30,
return_weight: bool = False
) -> Union[np.ndarray, Tuple[np.ndarray, int]]:
"""Decode the syndrome `z` using minimum-weight perfect matching
Expand Down

0 comments on commit 9ff3966

Please sign in to comment.