Improve type annotations in WeeknotesCommand

This commit is contained in:
Eryn Wells 2025-10-06 08:17:40 -07:00
parent 6f8987d393
commit b8372626bf

View file

@ -12,7 +12,7 @@ from .scripting import Command
class WeeknotesCommand(Command):
@staticmethod
def weeknotes_filename(year: str, week: str) -> str:
def weeknotes_filename(year: str | int, week: str | int) -> str:
return f'weeknotes-{year}w{week}.md'
@staticmethod
@ -26,7 +26,7 @@ class WeeknotesCommand(Command):
week_number_str = next_sunday.strftime('%V')
return blog.post_path(WeeknotesCommand.weeknotes_filename(
str(year),
year,
week_number_str
))