mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
Explicitly check for ast.Name
This commit is contained in:
parent
805530fe29
commit
df93509aed
2 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,8 @@ def visitor():
|
|||
@pytest.mark.parametrize(
|
||||
('expression', 'calls'),
|
||||
[
|
||||
# see #285
|
||||
('x[0]()', []),
|
||||
# complex
|
||||
("0j", []),
|
||||
("complex()", [BuiltinTypeCall('complex', 1, 0)]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue