Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Feb 13, 2024
1 parent d13c168 commit a0a0bec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/class_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,13 @@ def test_listcomp_value(self):
[{g}x for {~@3:11}t in {-X@1:0}x]
"""
)

def test_subclass(self):
self.assertAnnotationWorks(
"""
{g}class X:
{-X@1:0}x = 2
{g}class Y({g}X):
pass
"""
)

0 comments on commit a0a0bec

Please sign in to comment.