Skip to content

Commit

Permalink
Check against max annotations length, not 7
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
michael-k committed Nov 4, 2022
1 parent 2281a9a commit 62c62d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake8_annotations_complexity/ast_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validate_annotations_in_ast_node(
'TAE002 too complex annotation ({0} > {1})'.format(complexity, max_annotations_complexity),
))
annotation_len = get_annotation_len(annotation)
if annotation_len > 7:
if annotation_len > max_annotations_len:
too_difficult_annotations.append((
annotation,
'TAE003 too long annotation ({0} > {1})'.format(annotation_len, max_annotations_len),
Expand Down

0 comments on commit 62c62d5

Please sign in to comment.