[CHORE]: remove redundant-cast (#24807)
This commit is contained in:
parent
f11131f8b5
commit
ffba341258
26 changed files with 54 additions and 90 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from collections.abc import Sequence
|
||||
from typing import Annotated, TypeAlias, cast
|
||||
from typing import Annotated, TypeAlias
|
||||
from uuid import uuid4
|
||||
|
||||
from pydantic import Discriminator, Field, Tag
|
||||
|
|
@ -86,7 +86,7 @@ class SecretVariable(StringVariable):
|
|||
|
||||
@property
|
||||
def log(self) -> str:
|
||||
return cast(str, encrypter.obfuscated_token(self.value))
|
||||
return encrypter.obfuscated_token(self.value)
|
||||
|
||||
|
||||
class NoneVariable(NoneSegment, Variable):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue