Skip to content

Commit 8d06a49

Browse files
Fix invalid case in our test suite
1 parent d214db8 commit 8d06a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/typecheck/models/test_abstract.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
- path: myapp/models.py
146146
content: |
147147
from django.db import models
148-
from typing import Literal
148+
from typing import Literal, ClassVar
149149
150150
class Abstract(models.Model):
151151
field = models.CharField()
@@ -158,7 +158,7 @@
158158
159159
class LiteralAbstract(models.Model):
160160
class Meta:
161-
abstract: Literal[True]
161+
abstract: ClassVar[Literal[True]]
162162
163163
164164
- case: test_use_abstract_model

0 commit comments

Comments
 (0)