Skip to content

Commit

Permalink
fix(typing): fix redundant cast to "str"
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Jul 18, 2023
1 parent 90c9747 commit b7d755c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7d755c

Please sign in to comment.