Improve type annotations in WeeknotesCommand
This commit is contained in:
parent
6f8987d393
commit
b8372626bf
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue