Skip to content

Commit

Permalink
create handles_type_annotations_on_3rd_party_models test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Niicck committed Nov 9, 2024
1 parent fdb8aca commit 3e810f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Django==5.1.3; python_version >= '3.10'
-e ./ext
-e .[redis,compatible-mypy,oracle]

# 3rd Party Library for Testing
django-extensions==3.2.3

# Overrides:
mypy==1.13.0
pyright==1.1.388
8 changes: 8 additions & 0 deletions tests/typecheck/models/test_3rd_party_models.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- case: handles_type_annotations_on_3rd_party_models
main: |
from django.db import models
from django_extensions.db.models import TimeStampedModel # type: ignore [import-untyped]
class A(TimeStampedModel):
name = models.CharField()
count = models.IntegerField()

0 comments on commit 3e810f3

Please sign in to comment.