Skip to content

Commit

Permalink
Fix auto conversion for NormalizeNewLines
Browse files Browse the repository at this point in the history
  • Loading branch information
bhirsz committed May 6, 2024
1 parent 01aba0f commit 4131f72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions robotidy/transformers/NormalizeNewLines.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations
from typing import Optional

from robot.api.parsing import CommentSection, EmptyLine, Token

Expand Down Expand Up @@ -37,7 +37,9 @@ class NormalizeNewLines(Transformer):
def __init__(
self,
test_case_lines: int = 1,
keyword_lines: int | None = None,
# | was added in Python 3.10. We can't use it with from __future__ import annotations because of RF
# auto conversion - future annotations replaces everything to string
keyword_lines: Optional[int] = None,
section_lines: int = 2,
separate_templated_tests: bool = False,
consecutive_lines: int = 1,
Expand Down

0 comments on commit 4131f72

Please sign in to comment.