More code cleanup with a few bug fixes
This commit is contained in:
@ -11,7 +11,7 @@ class _Account(pydantic.BaseModel):
|
||||
|
||||
@classmethod
|
||||
def from_tuple(cls: Type[Self], tuple_: tuple[str, str, str]) -> Self:
|
||||
return cls(name=tuple_[0], login=tuple_[1], passwd=tuple_[2])
|
||||
return cls(name=tuple_[0], login=tuple_[1], password=tuple_[2])
|
||||
|
||||
def as_tuple(self: Self) -> tuple[str, str, str]:
|
||||
return (self.name, self.login, self.password)
|
||||
|
Reference in New Issue
Block a user