Fix a reportUnnecessaryIsInstance Pyright warning (#4263)

This commit is contained in:
correctmost 2026-02-27 01:39:46 -05:00 committed by GitHub
parent d781c9d857
commit d413c01fde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -317,10 +317,6 @@ class Size:
unit: Unit
sector_size: SectorSize
def __post_init__(self) -> None:
if not isinstance(self.sector_size, SectorSize):
raise ValueError('sector size must be of type SectorSize')
def json(self) -> _SizeSerialization:
return {
'value': self.value,