Skip to content

Commit 972a4e5

Browse files
authored
Update pyright to 1.1.374 (#2305)
1 parent b76f9f4 commit 972a4e5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Django==5.0.7; python_version >= '3.10'
1515

1616
# Overrides:
1717
mypy==1.11.1
18-
pyright==1.1.373
18+
pyright==1.1.374

tests/assert_type/db/models/fields/test_related_descriptors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ class MyModel(models.Model):
1313
rel = models.ForeignKey[Other, Other](Other, on_delete=models.CASCADE, related_name="explicit_descriptor")
1414

1515

16-
# Pyright doesn't allow "runtime" usage of @type_check_only 'RelatedManager' but we're
17-
# only type checking these files so it should be fine.
18-
assert_type(Other().explicit_descriptor, RelatedManager[MyModel]) # pyright: ignore[reportGeneralTypeIssues]
16+
assert_type(Other().explicit_descriptor, RelatedManager[MyModel])

0 commit comments

Comments
 (0)