From 1f5a2bcdd8967804dba55762b5dbbe735867fece Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Wed, 18 Dec 2024 01:53:40 -0800 Subject: [PATCH] Changed error messages to refer to lowercase `list`, `dict` and `type` rather than their deprecated uppercase counterparts now that Python 3.8 is EOL'ed. This addresses https://github.com/microsoft/pylance-release/issues/6783. --- .../src/localization/package.nls.en-us.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/pyright-internal/src/localization/package.nls.en-us.json b/packages/pyright-internal/src/localization/package.nls.en-us.json index 244673a11bde..8f18337db6e4 100644 --- a/packages/pyright-internal/src/localization/package.nls.en-us.json +++ b/packages/pyright-internal/src/localization/package.nls.en-us.json @@ -2064,20 +2064,20 @@ "uninitializedAbstractVariable": "Instance variable \"{name}\" is defined in abstract base class \"{classType}\" but not initialized", "unreachableExcept": "\"{exceptionType}\" is a subclass of \"{parentType}\"", "useDictInstead": { - "message": "Use Dict[T1, T2] to indicate a dictionary type", - "comment": "{Locked='Dict[T1, T2]'}" + "message": "Use dict[T1, T2] to indicate a dictionary type", + "comment": "{Locked='dict[T1, T2]'}" }, "useListInstead": { - "message": "Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type", - "comment": "{Locked='List[T]','list','Union[T1, T2]','union'}" + "message": "Use list[T] to indicate a list type or T1 | T2 to indicate a union type", + "comment": "{Locked='list[T]','list','T1 | T2','union'}" }, "useTupleInstead": { - "message": "Use tuple[T1, ..., Tn] to indicate a tuple type or Union[T1, T2] to indicate a union type", - "comment": "{Locked='tuple[T1, ..., Tn]','tuple','Union[T1, T2]','union'}" + "message": "Use tuple[T1, ..., Tn] to indicate a tuple type or T1 | T2 to indicate a union type", + "comment": "{Locked='tuple[T1, ..., Tn]','tuple','T1 | T2','union'}" }, "useTypeInstead": { - "message": "Use Type[T] instead", - "comment": "{Locked='Type[T]'}" + "message": "Use type[T] instead", + "comment": "{Locked='type[T]'}" }, "varianceMismatchForClass": "Variance of type argument \"{typeVarName}\" is incompatible with base class \"{className}\"", "varianceMismatchForTypeAlias": "Variance of type argument \"{typeVarName}\" is incompatible with \"{typeAliasParam}\""