Skip to content

Commit

Permalink
[3.15] Add SimpleRouter use_regex_path argument (#344)
Browse files Browse the repository at this point in the history
intgr authored Mar 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent dd1dcf7 commit 3bbfa43
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rest_framework-stubs/routers.pyi
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ class BaseRouter(metaclass=RenameRouterMethods):
class SimpleRouter(BaseRouter):
routes: list[Route | DynamicRoute]
trailing_slash: str
def __init__(self, trailing_slash: bool = ...) -> None: ...
def __init__(self, trailing_slash: bool = ..., use_regex_path: bool = ...) -> None: ...
def get_routes(self, viewset: type[ViewSetMixin]) -> list[Route]: ...
def _get_dynamic_route(self, route: DynamicRoute, action: Any) -> Route: ...
def get_method_map(self, viewset: type[ViewSetMixin], method_map: Mapping[str, str]) -> dict[str, str]: ...
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
@@ -150,7 +150,6 @@ rest_framework.generics.GenericAPIView.__class_getitem__
rest_framework.request.Request.__class_getitem__
rest_framework.response.Response.__class_getitem__
rest_framework.routers.BaseRouter.is_already_registered
rest_framework.routers.SimpleRouter.__init__
rest_framework.schemas.openapi.AutoSchema.get_field_name
rest_framework.serializers.DecimalField.__init__
rest_framework.serializers.Field.__class_getitem__

0 comments on commit 3bbfa43

Please sign in to comment.