Skip to content

Commit

Permalink
fixup! Improve hints for ManyToManyDescriptor and start using it
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeppe committed Nov 16, 2023
1 parent f1f53bb commit a6cc98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/db/models/fields/related_descriptors.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ManyRelatedManager(BaseManager[_M], Generic[_M]):
async def aset(self, objs: QuerySet[_M] | Iterable[_M | int], *, bulk: bool = ..., clear: bool = ...) -> None: ...
def clear(self) -> None: ...
async def aclear(self) -> None: ...
def __call__(self, *, manager: str) -> Self: ...
def __call__(self, *, manager: str) -> ManyRelatedManager[_M]: ...

def create_forward_many_to_many_manager(
superclass: type[BaseManager[_M]], rel: ManyToManyRel, reverse: bool
Expand Down

0 comments on commit a6cc98d

Please sign in to comment.