Skip to content

Commit

Permalink
Use isinstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Aug 16, 2023
1 parent 816be95 commit 8d870f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alicat/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(self, address: str, baudrate: int=19200, timeout: float=.15,
"""Initialize serial port."""
super().__init__(timeout)
self.address = address
assert type(self.address) == str
assert isinstance(self.address, str)
self.serial_details = {'baudrate': baudrate,
'bytesize': bytesize,
'stopbits': stopbits,
Expand Down

0 comments on commit 8d870f1

Please sign in to comment.