Skip to content

Commit

Permalink
Add type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ftCLI committed Sep 26, 2023
1 parent b9d03e2 commit 6b710ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions foundryToolsCLI/Lib/tables/OS_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,12 @@ def to_dict(self) -> dict:
def panose_to_dict(self) -> dict:
panose_dict = {}

panose_family_type = self.panose.bFamilyType
panose_data = PANOSE_STRUCT["bFamilyType"].get(panose_family_type)
family_description = panose_data["description"]
panose_family_type: int = self.panose.bFamilyType
panose_data: dict = PANOSE_STRUCT["bFamilyType"].get(panose_family_type)
family_description: str = panose_data["description"]
panose_dict.update({"bFamilyType": f"Family Type: {panose_family_type} - {family_description}"})

family_sub_digits = panose_data["sub_digits"]
family_sub_digits: dict = panose_data["sub_digits"]
for k in family_sub_digits.keys():
sub_digit_description = family_sub_digits[k]["description"]
sub_digit_value = getattr(self.panose, k)
Expand Down

0 comments on commit 6b710ea

Please sign in to comment.