From 9cc94f88b25a5f3c86518b8968a0172b688c4d1b Mon Sep 17 00:00:00 2001 From: Nathan Whitaker Date: Mon, 21 Aug 2023 17:33:03 -0700 Subject: [PATCH] Update comments in UP040 test --- crates/ruff/resources/test/fixtures/pyupgrade/UP040.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ruff/resources/test/fixtures/pyupgrade/UP040.py b/crates/ruff/resources/test/fixtures/pyupgrade/UP040.py index 49fb6f7c84673a..8595dd8848145e 100644 --- a/crates/ruff/resources/test/fixtures/pyupgrade/UP040.py +++ b/crates/ruff/resources/test/fixtures/pyupgrade/UP040.py @@ -13,18 +13,19 @@ T = typing.TypeVar("T") x: typing.TypeAlias = list[T] -# UP040 bounded generic (todo) +# UP040 bounded generic T = typing.TypeVar("T", bound=int) x: typing.TypeAlias = list[T] +# UP040 constrained generic T = typing.TypeVar("T", int, str) x: typing.TypeAlias = list[T] -# UP040 contravariant generic (todo) +# UP040 contravariant generic T = typing.TypeVar("T", contravariant=True) x: typing.TypeAlias = list[T] -# UP040 covariant generic (todo) +# UP040 covariant generic T = typing.TypeVar("T", covariant=True) x: typing.TypeAlias = list[T]