File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/mock_vws/_requests_mock_server Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 77import email .utils
88from collections .abc import Callable , Iterable , Mapping
99from http import HTTPMethod , HTTPStatus
10- from types import MethodType
1110
1211from beartype import beartype
1312from 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 )
Original file line number Diff line number Diff line change 1212import uuid
1313from collections .abc import Callable , Iterable , Mapping
1414from http import HTTPMethod , HTTPStatus
15- from types import MethodType
1615from typing import Any
1716from 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 )
You can’t perform that action at this time.
0 commit comments