Skip to content

Commit

Permalink
mypy now knows about ip_address return types
Browse files Browse the repository at this point in the history
  • Loading branch information
afflux committed Mar 18, 2022
1 parent fef4859 commit 7b03fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/someip/sd.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


def ip_address(s: str) -> _T_IPADDR:
return typing.cast(_T_IPADDR, ipaddress.ip_address(s.split("%", 1)[0]))
return ipaddress.ip_address(s.split("%", 1)[0])


def pack_addr_v4(a):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ commands =
basepython = python3.8
skip_install = true
deps =
mypy>=0.780
mypy>=0.940
commands =
mypy --show-error-codes src/ tools/

Expand Down

0 comments on commit 7b03fbc

Please sign in to comment.