Skip to content

Commit

Permalink
fix mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr committed Nov 2, 2024
1 parent 7068b58 commit 2ec82ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap7/util/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def make_rows(self) -> None:
if key and key in self.index:
msg = f"{key} not unique!"
logger.error(msg)
self.index[key] = row
self.index[str(key)] = row

def __getitem__(self, key: str, default: Optional[None] = None) -> Union[None, "Row"]:
"""Access a row of the table through its index.
Expand Down

0 comments on commit 2ec82ae

Please sign in to comment.