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

ℹ Safe fix
4 4 | from typing import Text as Goodbye
5 5 | 
6 6 | 
7   |-def print_word(word: Text) -> None:
  7 |+def print_word(word: str) -> None:
8 8 |     print(word)
9 9 | 
10 10 | 

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

ℹ Safe fix
8  8  |     print(word)
9  9  | 
10 10 | 
11    |-def print_second_word(word: typing.Text) -> None:
   11 |+def print_second_word(word: str) -> None:
12 12 |     print(word)
13 13 | 
14 14 | 

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

ℹ Safe fix
12 12 |     print(word)
13 13 | 
14 14 | 
15    |-def print_third_word(word: Hello.Text) -> None:
   15 |+def print_third_word(word: str) -> None:
16 16 |     print(word)
17 17 | 
18 18 | 

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

ℹ Safe fix
16 16 |     print(word)
17 17 | 
18 18 | 
19    |-def print_fourth_word(word: Goodbye) -> None:
   19 |+def print_fourth_word(word: str) -> None:
20 20 |     print(word)
