Skip to content

Commit

Permalink
Simplify call
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Nov 17, 2024
1 parent 6478b68 commit 3bc0261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tivars/types/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,10 @@ def get_equations(self, data: bytes = None) -> tuple[TIGraphedEquation, ...]:
return equations

def get_min_os(self, data: bytes = None) -> OsVersion:
return max([TIGraphedEquation.get_min_os(eq) for eq in self.get_equations(data)], default=OsVersions.INITIAL)
return max([eq.get_min_os() for eq in self.get_equations(data)], default=OsVersions.INITIAL)

def get_version(self, data: bytes = None) -> int:
return max([TIGraphedEquation.get_version(eq) for eq in self.get_equations(data)], default=0x00)
return max([eq.get_version() for eq in self.get_equations(data)], default=0x00)

@Loader[dict]
def load_dict(self, dct: dict):
Expand Down

0 comments on commit 3bc0261

Please sign in to comment.