Skip to content

Commit a67afde

Browse files
authored
Fix type for tree argument (#353)
1 parent 817f61b commit a67afde

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

HISTORY.rst

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
History
33
=======
44

5+
* Fix type hint for ``tree`` argument.
6+
7+
Thanks to kasium for the report in `Issue #352
8+
<https://github.com/adamchainz/flake8-comprehensions/issues/352>`__.
9+
510
3.6.0 (2021-08-13)
611
------------------
712

src/flake8_comprehensions/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ComprehensionChecker:
1818

1919
__slots__ = ("tree",)
2020

21-
def __init__(self, tree: ast.Module) -> None:
21+
def __init__(self, tree: ast.AST) -> None:
2222
self.tree = tree
2323

2424
messages = {

0 commit comments

Comments
 (0)