fix(segments): Support NoneType. (#6581)

This commit is contained in:
-LAN-
2024-07-23 17:59:32 +08:00
committed by GitHub
parent 75445a0c66
commit 2bc0632d0d
6 changed files with 45 additions and 4 deletions

View File

@@ -81,3 +81,8 @@ class SecretVariable(StringVariable):
@property
def log(self) -> str:
return encrypter.obfuscated_token(self.value)
class NoneVariable(Variable):
value_type: SegmentType = SegmentType.NONE
value: None = None