Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.15] Add is_already_registered function of BaseRouter #587

Merged
merged 1 commit into from
Apr 15, 2024
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
1 change: 1 addition & 0 deletions rest_framework-stubs/routers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class BaseRouter(metaclass=RenameRouterMethods):
def register(
self, prefix: str, viewset: type[ViewSetMixin], basename: str | None = ..., base_name: str | None = ...
) -> None: ...
def is_already_registered(self, new_basename: str) -> bool: ...
def get_default_basename(self, viewset: type[ViewSetMixin]) -> str: ...
def get_urls(self) -> list[_AnyURL]: ...
@property
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ rest_framework.filters.search_smart_split
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.serializers.Field.__class_getitem__
rest_framework.serializers.ListSerializer.run_child_validation
rest_framework.serializers.ModelSerializer.get_unique_together_constraints
Expand Down