summaryrefslogtreecommitdiff
path: root/tests/functional/u/unnecessary/unnecessary_dunder_call_async_py39.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/u/unnecessary/unnecessary_dunder_call_async_py39.py')
-rw-r--r--tests/functional/u/unnecessary/unnecessary_dunder_call_async_py39.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/u/unnecessary/unnecessary_dunder_call_async_py39.py b/tests/functional/u/unnecessary/unnecessary_dunder_call_async_py39.py
new file mode 100644
index 000000000..589524170
--- /dev/null
+++ b/tests/functional/u/unnecessary/unnecessary_dunder_call_async_py39.py
@@ -0,0 +1,15 @@
+"""Checks for unnecessary-dunder-call on __aiter__/__anext__ with py-version=3.9."""
+
+
+class MyClass:
+ """A class implementing __aiter__ and __anext__."""
+
+ def __aiter__(self):
+ ...
+
+ async def __anext__(self):
+ ...
+
+
+MyClass().__aiter__()
+MyClass().__anext__()