---
source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs
---
PYI047 Private TypeAlias `_UnusedPrivateTypeAlias` is never used
 --> PYI047.py:6:1
  |
6 | _UnusedPrivateTypeAlias: TypeAlias = int | None
  | ^^^^^^^^^^^^^^^^^^^^^^^
7 | _T: typing.TypeAlias = str
  |

PYI047 Private TypeAlias `_T` is never used
 --> PYI047.py:7:1
  |
6 | _UnusedPrivateTypeAlias: TypeAlias = int | None
7 | _T: typing.TypeAlias = str
  | ^^
8 |
9 | # OK
  |

PYI047 Private TypeAlias `_UnusedPEP695` is never used
  --> PYI047.py:24:6
   |
22 | def func2(arg: _PrivateTypeAlias) -> None: ...
23 |
24 | type _UnusedPEP695 = int
   |      ^^^^^^^^^^^^^
25 | type _UnusedGeneric695[T] = list[T]
   |

PYI047 Private TypeAlias `_UnusedGeneric695` is never used
  --> PYI047.py:25:6
   |
24 | type _UnusedPEP695 = int
25 | type _UnusedGeneric695[T] = list[T]
   |      ^^^^^^^^^^^^^^^^^
26 |
27 | type _UsedPEP695 = str
   |
