---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP019 [*] `typing.Text` is deprecated, use `str`
 --> UP019.py:7:22
  |
7 | def print_word(word: Text) -> None:
  |                      ^^^^
8 |     print(word)
  |
help: Replace with `str`
  |
6 |
  - def print_word(word: Text) -> None:
7 + def print_word(word: str) -> None:
8 |     print(word)
  |

UP019 [*] `typing.Text` is deprecated, use `str`
  --> UP019.py:11:29
   |
11 | def print_second_word(word: typing.Text) -> None:
   |                             ^^^^^^^^^^^
12 |     print(word)
   |
help: Replace with `str`
   |
10 |
   - def print_second_word(word: typing.Text) -> None:
11 + def print_second_word(word: str) -> None:
12 |     print(word)
   |

UP019 [*] `typing.Text` is deprecated, use `str`
  --> UP019.py:15:28
   |
15 | def print_third_word(word: Hello.Text) -> None:
   |                            ^^^^^^^^^^
16 |     print(word)
   |
help: Replace with `str`
   |
14 |
   - def print_third_word(word: Hello.Text) -> None:
15 + def print_third_word(word: str) -> None:
16 |     print(word)
   |

UP019 [*] `typing.Text` is deprecated, use `str`
  --> UP019.py:19:29
   |
19 | def print_fourth_word(word: Goodbye) -> None:
   |                             ^^^^^^^
20 |     print(word)
   |
help: Replace with `str`
   |
18 |
   - def print_fourth_word(word: Goodbye) -> None:
19 + def print_fourth_word(word: str) -> None:
20 |     print(word)
   |
