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
Tags 0.1.1
No related merge requests found
......@@ -20,28 +20,28 @@ class CalendarWeek:
def day_names(cls, loc: Optional[str] = None) -> Tuple[str]:
""" 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)
@classmethod
def day_abbrs(cls, loc: Optional[str] = None) -> Tuple[str]:
""" 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)
@classmethod
def month_names(cls, loc: Optional[str] = None) -> Tuple[str]:
""" 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:])
@classmethod
def month_abbrs(cls, loc: Optional[str] = None) -> Tuple[str]:
""" 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:])
@classmethod
......
[tool.poetry]
name = "calendarweek"
version = "0.4.2"
version = "0.4.3"
description = "Utilities for working with calendar weeks in Python and Django"
authors = ["Dominik George <nik@naturalnet.de>", "Jonathan Weth <git@jonathanweth.de>"]
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