Skip to content

Commit

Permalink
chore: type ignore for _matrix.py (#2317)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Added type hinting suppression in the `_getallroute` method to address
type checking issues.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
njzjz authored Dec 23, 2024
1 parent a6a93a5 commit 2173d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reacnetgenerator/_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _getallroute(self, allmoleculeroute):
names = names[names[:, 0] != names[:, 1]]
if names.size > 0:
equations = np.unique(names, return_counts=True, axis=0)
return zip(equations[0].tolist(), equations[1].tolist())
return zip(equations[0].tolist(), equations[1].tolist()) # type: ignore
return []

def _printtable(self, allroute, timeaxis=None):
Expand Down

0 comments on commit 2173d87

Please sign in to comment.