Skip to content

Commit 9bb2af5

Browse files
Remove annotations from __future__ when not needed
Most of the annotations from __future__ are no longer needed, except for the cases where there are circular dependencies, forward references, or when the type hint is used inside the class itself. Signed-off-by: Daniel Zullo <[email protected]>
1 parent f717214 commit 9bb2af5

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

src/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
This plugin extracts these code examples and validates them using pylint.
88
"""
99

10-
from __future__ import annotations
1110

1211
import ast
1312
import os

tests/test_anycast.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Tests for the Channel implementation."""
55

6-
from __future__ import annotations
76

87
import asyncio
98

tests/test_broadcast.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Tests for the Broadcast implementation."""
55

6-
from __future__ import annotations
76

87
import asyncio
98

tests/utils/test_file_watcher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Tests for `channel.FileWatcher`."""
55

6-
from __future__ import annotations
76

87
import pathlib
98
from collections.abc import AsyncGenerator, Iterator, Sequence

tests/utils/test_timer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Tests for the timer."""
55

6-
from __future__ import annotations
76

87
import asyncio
98
import enum

0 commit comments

Comments
 (0)