Skip to content

Conversation

@flaeppe
Copy link
Member

@flaeppe flaeppe commented Aug 2, 2024


class ManyToManyField(RelatedField[Any, Any], Generic[_To, _Through]):
description: str
description: _StrOrPromise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is a good time to use StrOrPromise instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean importing it from django_stubs_ext?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is non blocking. We can do this later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should do the whole file at once? To not introduce any ambiguity?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree :)
Maybe even for the whole project.

@sobolevn sobolevn merged commit 2f4c99a into typeddjango:master Aug 2, 2024
@flaeppe flaeppe deleted the fix/m2m-description branch August 2, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants