Skip to content

Commit

Permalink
fix: more type checking client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafishman authored May 1, 2024
1 parent 99a0460 commit 211ee97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcp_modbus_aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ async def _get_tcp_connection(

return reader, writer

async def __aenter__(self) -> Self:
async def __aenter__(self) -> "Self":
return self

async def __aexit__(
self,
exc_type: type[BaseException] | None,
exc_val: BaseException | None,
exc_tb: TracebackType | None,
exc_tb: "TracebackType" | None,
) -> None:
await self.close()

Expand Down

0 comments on commit 211ee97

Please sign in to comment.