Remove unnecessary post-init (#4267)

This commit is contained in:
codefiles 2026-02-28 01:30:59 -05:00 committed by GitHub
parent 390b4959bd
commit 76d6f08841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -40,10 +40,6 @@ class Luks2:
worker.poll()
worker.write(b'YES\n', line_ending=False)
def __post_init__(self) -> None:
if self.luks_dev_path is None:
raise ValueError('Partition must have a path set')
def __enter__(self) -> None:
self.unlock(self.key_file)