Skip to content

Commit 994a7e8

Browse files
committed
Minor changes to repr of _HTTPRoute and _HTTPRoutes
1 parent 813c532 commit 994a7e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_httpserver/route.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def last_match_groups(self) -> Union[List[str], None]:
5959
return self._last_match_groups
6060

6161
def __repr__(self) -> str:
62-
return f"HTTPRoute(path={repr(self.path)}, method={repr(self.method)})"
62+
return f"_HTTPRoute(path={repr(self.path)}, method={repr(self.method)})"
6363

6464

6565
class _HTTPRoutes:
@@ -103,3 +103,6 @@ def wrapper(request):
103103
return handler(request, *args)
104104

105105
return wrapper
106+
107+
def __repr__(self) -> str:
108+
return f"_HTTPRoutes({repr(self._routes)})"

0 commit comments

Comments
 (0)