From d4427547ea1d9cdb231a634d728a64267402b0c6 Mon Sep 17 00:00:00 2001 From: Zac Hatfield-Dodds Date: Tue, 22 Oct 2024 18:12:13 -0700 Subject: [PATCH] Suggest `pyupgrade` or `ruff` for modernizing --- docs/guides/modernizing.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/guides/modernizing.rst b/docs/guides/modernizing.rst index 0c6309a3..db5d81e8 100644 --- a/docs/guides/modernizing.rst +++ b/docs/guides/modernizing.rst @@ -24,6 +24,12 @@ Each section states the minimum Python version required to use the feature, whether it is available in typing-extensions, and whether it is available using quoting. +.. tip:: + + Tools such as `pyupgrade `__ or + `ruff `__ can automatically perform + these refactorings for you. + .. note:: The latest version of typing-extensions is available for all Python