Skip to content
Snippets Groups Projects
Commit 59d072c5 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix typo

parent ee0e8792
No related branches found
No related tags found
Loading
...@@ -20,28 +20,28 @@ class CalendarWeek: ...@@ -20,28 +20,28 @@ class CalendarWeek:
def day_names(cls, loc: Optional[str] = None) -> Tuple[str]: def day_names(cls, loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of day names for the selected locale. """ """ Return a tuple of day names for the selected locale. """
with calendar.different_locale(normalise_locale(loc): with calendar.different_locale(normalise_locale(loc)):
return tuple(calendar.day_name) return tuple(calendar.day_name)
@classmethod @classmethod
def day_abbrs(cls, loc: Optional[str] = None) -> Tuple[str]: def day_abbrs(cls, loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of day name abbreviations for the selected locale. """ """ Return a tuple of day name abbreviations for the selected locale. """
with calendar.different_locale(normalise_locale(loc): with calendar.different_locale(normalise_locale(loc)):
return tuple(calendar.day_abbr) return tuple(calendar.day_abbr)
@classmethod @classmethod
def month_names(cls, loc: Optional[str] = None) -> Tuple[str]: def month_names(cls, loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of month names for the selected locale. """ """ Return a tuple of month names for the selected locale. """
with calendar.different_locale(normalise_locale(loc): with calendar.different_locale(normalise_locale(loc)):
return tuple(calendar.month_name[1:]) return tuple(calendar.month_name[1:])
@classmethod @classmethod
def month_abbrs(cls, loc: Optional[str] = None) -> Tuple[str]: def month_abbrs(cls, loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of month name abbreviations for the selected locale. """ """ Return a tuple of month name abbreviations for the selected locale. """
with calendar.different_locale(normalise_locale(loc): with calendar.different_locale(normalise_locale(loc)):
return tuple(calendar.month_abbr[1:]) return tuple(calendar.month_abbr[1:])
@classmethod @classmethod
......
[tool.poetry] [tool.poetry]
name = "calendarweek" name = "calendarweek"
version = "0.4.2" version = "0.4.3"
description = "Utilities for working with calendar weeks in Python and Django" description = "Utilities for working with calendar weeks in Python and Django"
authors = ["Dominik George <nik@naturalnet.de>", "Jonathan Weth <git@jonathanweth.de>"] authors = ["Dominik George <nik@naturalnet.de>", "Jonathan Weth <git@jonathanweth.de>"]
license = "MIT" license = "MIT"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment