Skip to content

Commit 40c90fe

Browse files
committed
Undo unnecessary change
1 parent 034b4ac commit 40c90fe

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/mock_vws/_requests_mock_server/mock_web_query_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import email.utils
88
from collections.abc import Callable, Iterable, Mapping
99
from http import HTTPMethod, HTTPStatus
10-
from types import MethodType
1110

1211
from beartype import beartype
1312
from requests.models import PreparedRequest
@@ -53,9 +52,8 @@ def decorator(
5352
The given `method` with multiple changes, including added
5453
validators.
5554
"""
56-
route_name = method.__name__ if isinstance(method, MethodType) else ""
5755
new_route = Route(
58-
route_name=route_name,
56+
route_name=method.__name__,
5957
path_pattern=path_pattern,
6058
http_methods=frozenset(http_methods),
6159
)

src/mock_vws/_requests_mock_server/mock_web_services_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import uuid
1313
from collections.abc import Callable, Iterable, Mapping
1414
from http import HTTPMethod, HTTPStatus
15-
from types import MethodType
1615
from typing import Any
1716
from zoneinfo import ZoneInfo
1817

@@ -68,9 +67,8 @@ def decorator(
6867
The given `method` with multiple changes, including added
6968
validators.
7069
"""
71-
route_name = method.__name__ if isinstance(method, MethodType) else ""
7270
new_route = Route(
73-
route_name=route_name,
71+
route_name=method.__name__,
7472
path_pattern=path_pattern,
7573
http_methods=frozenset(http_methods),
7674
)

0 commit comments

Comments
 (0)