From ab5d39f075386ea18ae00b4cc397569ed5a5753f Mon Sep 17 00:00:00 2001 From: tamohannes Date: Mon, 17 Aug 2026 16:18:19 -0700 Subject: [PATCH] Order NoneArg's union so make lint passes `make lint` fails on a clean clone with one error: RUF036 `None` not at the end of the type union --> src/nu/lang/args.py:68 Move `None` to the end of the alias. It costs the symmetry with the sibling aliases, which all put the bare type first, but the alias is a quoted annotation so the order carries no runtime or typing meaning. Co-Authored-By: Claude Opus 5 (1M context) --- src/nu/lang/args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nu/lang/args.py b/src/nu/lang/args.py index e7015c9a..67b13662 100644 --- a/src/nu/lang/args.py +++ b/src/nu/lang/args.py @@ -65,7 +65,7 @@ StrArg: TypeAlias = "str | Nu[str] | Any | Sentinel" BoolArg: TypeAlias = "bool | Nu[bool] | Any | Sentinel" BytesArg: TypeAlias = "bytes | Nu[bytes] | Any | Sentinel" -NoneArg: TypeAlias = "None | Nu[None] | Any | Sentinel" +NoneArg: TypeAlias = "Nu[None] | Any | Sentinel | None" ListArg = TypeAliasType("ListArg", "list[_V] | Nu[list[_V]] | Any | Sentinel", type_params=(_V,)) DictArg = TypeAliasType(