Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions matter_server/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os
from pathlib import Path
import traceback
from typing import TYPE_CHECKING, Any, cast
from typing import TYPE_CHECKING, Any
import weakref

from aiohttp import web
Expand Down Expand Up @@ -293,8 +293,6 @@ def scope_ipv6_lla(self, ip_addr: str) -> str:
if not ip_addr_parsed.is_link_local or ip_addr_parsed.version != 6:
return ip_addr

ip_addr_parsed = cast(ipaddress.IPv6Address, ip_addr_parsed)

if ip_addr_parsed.scope_id is not None:
# This type of IPv6 manipulation is not supported by the ipaddress lib
ip_addr = ip_addr.split("%", maxsplit=1)[0]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test = [
"aioresponses==0.7.8",
"codespell==2.4.2",
"isort==8.0.1",
"mypy==1.20.1",
"mypy==1.20.2",
"pre-commit==4.6.0",
"pre-commit-hooks==6.0.0",
"pylint==4.0.5",
Expand Down
Loading