From b7d755c1035a88ffab690c9b73c596778da95a0a Mon Sep 17 00:00:00 2001 From: Laurent LAPORTE Date: Wed, 12 Jul 2023 10:21:17 +0200 Subject: [PATCH] fix(typing): fix redundant cast to "str" --- .../storage/variantstudy/model/command/create_st_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antarest/study/storage/variantstudy/model/command/create_st_storage.py b/antarest/study/storage/variantstudy/model/command/create_st_storage.py index 0b008b61bf..b029336fab 100644 --- a/antarest/study/storage/variantstudy/model/command/create_st_storage.py +++ b/antarest/study/storage/variantstudy/model/command/create_st_storage.py @@ -141,7 +141,7 @@ def register_matrix( "inflows": constants.get_st_storage_inflows, } method = methods[field.name] - return cast(str, method()) + return method() if isinstance(v, str): # Check the matrix link return validate_matrix(v, values)