Skip to content

Commit

Permalink
Add regression test for PyCQA#316
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jan 16, 2023
1 parent f5efc88 commit 71eed1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/attribute_annotations.pyi
@@ -1,6 +1,6 @@
import sys
import typing
from typing import Final, TypeAlias
from typing import Final, Final as _Final, TypeAlias

import typing_extensions

Expand Down Expand Up @@ -28,6 +28,7 @@ field11: Final = 1
field12: Final = "foo"
field13: Final = b"foo"
field14: Final = True
field15: _Final = True
field16: typing.Final = "foo"
field17: typing_extensions.Final = "foo"
field18: Final = -24j
Expand All @@ -54,6 +55,7 @@ class Foo:
field10: Final = "foo"
field11: Final = b"foo"
field12: Final = True
field13: _Final = True
field14: typing.Final = "foo"
field15: typing_extensions.Final = "foo"
# Standalone strings used to cause issues
Expand Down

0 comments on commit 71eed1f

Please sign in to comment.