We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5588631 commit a4c8a7dCopy full SHA for a4c8a7d
1 file changed
unittests/test_functools_lru.py
@@ -2,6 +2,7 @@
2
import sys
3
4
import pytest
5
+from typing_extensions import get_annotations, Format
6
7
import asyncstdlib as a
8
@@ -175,5 +176,5 @@ async def other_method(self):
175
176
if name != "method":
177
continue
178
# test direct and literal annotation styles
- assert Bar.method.__annotations__["int_arg"] in {int, "int"}
179
- assert Bar().method.__annotations__["int_arg"] in {int, "int"}
+ assert get_annotations(Bar.method, format=Format.STRING)['int_arg'] == "int"
180
+ assert get_annotations(Bar().method, format=Format.STRING)['int_arg'] == "int"
0 commit comments