Skip to content

Commit d413c01

Browse files
authored
Fix a reportUnnecessaryIsInstance Pyright warning (#4263)
1 parent d781c9d commit d413c01

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

archinstall/lib/models/device.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,6 @@ class Size:
317317
unit: Unit
318318
sector_size: SectorSize
319319

320-
def __post_init__(self) -> None:
321-
if not isinstance(self.sector_size, SectorSize):
322-
raise ValueError('sector size must be of type SectorSize')
323-
324320
def json(self) -> _SizeSerialization:
325321
return {
326322
'value': self.value,

0 commit comments

Comments
 (0)