summaryrefslogtreecommitdiff
path: root/_test/test_a_dedent.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2023-05-01 19:13:50 +0200
committerAnthon van der Neut <anthon@mnt.org>2023-05-01 19:13:50 +0200
commit8b731994b1543d7886af85f926d9eea5a22d0732 (patch)
tree3553d4cbc80b541484d7a3f39e00cdcfd8f9d030 /_test/test_a_dedent.py
parent45111ba0b67e8619265d89f3202635e62c13cde6 (diff)
downloadruamel.yaml-8b731994b1543d7886af85f926d9eea5a22d0732.tar.gz
retrofitted 0.18 changes
Diffstat (limited to '_test/test_a_dedent.py')
-rw-r--r--_test/test_a_dedent.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/_test/test_a_dedent.py b/_test/test_a_dedent.py
index 447bdde..e13a54b 100644
--- a/_test/test_a_dedent.py
+++ b/_test/test_a_dedent.py
@@ -4,7 +4,7 @@ from roundtrip import dedent
class TestDedent:
- def test_start_newline(self):
+ def test_start_newline(self) -> None:
# fmt: off
x = dedent("""
123
@@ -13,7 +13,7 @@ class TestDedent:
# fmt: on
assert x == '123\n 456\n'
- def test_start_space_newline(self):
+ def test_start_space_newline(self) -> None:
# special construct to prevent stripping of following whitespace
# fmt: off
x = dedent(" " """
@@ -22,7 +22,7 @@ class TestDedent:
# fmt: on
assert x == '123\n'
- def test_start_no_newline(self):
+ def test_start_no_newline(self) -> None:
# special construct to prevent stripping of following whitespac
x = dedent("""\
123
@@ -30,17 +30,17 @@ class TestDedent:
""")
assert x == '123\n 456\n'
- def test_preserve_no_newline_at_end(self):
+ def test_preserve_no_newline_at_end(self) -> None:
x = dedent("""
123""")
assert x == '123'
- def test_preserve_no_newline_at_all(self):
+ def test_preserve_no_newline_at_all(self) -> None:
x = dedent("""\
123""")
assert x == '123'
- def test_multiple_dedent(self):
+ def test_multiple_dedent(self) -> None:
x = dedent(
dedent("""
123