diff --git a/requirements.txt b/requirements.txt index 99f1f9529..e2c8df087 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,4 @@ Django==5.0.7; python_version >= '3.10' # Overrides: mypy==1.11.1 -pyright==1.1.373 +pyright==1.1.374 diff --git a/tests/assert_type/db/models/fields/test_related_descriptors.py b/tests/assert_type/db/models/fields/test_related_descriptors.py index 61ded3d82..3155da4c4 100644 --- a/tests/assert_type/db/models/fields/test_related_descriptors.py +++ b/tests/assert_type/db/models/fields/test_related_descriptors.py @@ -13,6 +13,4 @@ class MyModel(models.Model): rel = models.ForeignKey[Other, Other](Other, on_delete=models.CASCADE, related_name="explicit_descriptor") -# Pyright doesn't allow "runtime" usage of @type_check_only 'RelatedManager' but we're -# only type checking these files so it should be fine. -assert_type(Other().explicit_descriptor, RelatedManager[MyModel]) # pyright: ignore[reportGeneralTypeIssues] +assert_type(Other().explicit_descriptor, RelatedManager[MyModel])