Skip to content

Commit

Permalink
Update pyright to 1.1.374 (#2305)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Aug 1, 2024
1 parent b76f9f4 commit 972a4e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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])

0 comments on commit 972a4e5

Please sign in to comment.