From b431b8a9ec527e871aecc351d4a7d9a016fd2720 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 25 Oct 2024 08:25:56 -0500 Subject: [PATCH] chore: remove unnecessary type checking --- openedx_learning/apps/authoring/contents/models.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/openedx_learning/apps/authoring/contents/models.py b/openedx_learning/apps/authoring/contents/models.py index f641629c..6c9f9593 100644 --- a/openedx_learning/apps/authoring/contents/models.py +++ b/openedx_learning/apps/authoring/contents/models.py @@ -267,11 +267,7 @@ class Content(models.Model): # only in file form. It is an error for ``text`` to be None and ``has_file`` # to be False, since that would mean we haven't stored data anywhere at all. # - # We annotate this because mypy doesn't recognize that ``text`` should be - # nullable when using MultiCollationTextField, but does the right thing for - # TextField. For more info, see: - # https://github.com/openedx/openedx-learning/issues/152 - text: models.TextField[str | None, str | None] = MultiCollationTextField( + text = MultiCollationTextField( blank=True, null=True, max_length=MAX_TEXT_LENGTH,