Skip to content

Commit

Permalink
Fixing type annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Oct 27, 2023
1 parent df03afb commit 1069112
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aastex/_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class Title(pylatex.base_classes.LatexObject):
name: str

def dumps(self):
def dumps(self) -> str:
return pylatex.Command("title", self.name).dumps()


Expand All @@ -23,7 +23,7 @@ class Affiliation(pylatex.base_classes.LatexObject):
name: str
"""human-readable name of the organization"""

def dumps(self):
def dumps(self)-> str:
return pylatex.Command("affiliation", self.name).dumps()


Expand All @@ -36,5 +36,5 @@ class Author(pylatex.base_classes.LatexObject):
affiliation: Affiliation
"""organization affiliated with the author"""

def dumps(self):
def dumps(self) -> str:
return pylatex.Command("author", self.name).dumps() + self.affiliation.dumps()

0 comments on commit 1069112

Please sign in to comment.