Skip to content

Commit

Permalink
sphinx-doc#3799 specify missing type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
TimKam committed Aug 6, 2017
1 parent 4f3cf40 commit 2150634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx/locale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def lazy_gettext(string):

if PY3:
def _(message, *args):
# type: (unicode) -> unicode
# type: (unicode, *Any) -> unicode
try:
if len(args) <= 1:
return translators['sphinx'].gettext(message)
Expand All @@ -238,7 +238,7 @@ def _(message, *args):
return message
else:
def _(message, *args):
# type: (unicode) -> unicode
# type: (unicode, *Any) -> unicode
try:
if len(args) <= 1:
return translators['sphinx'].ugettext(message)
Expand All @@ -249,7 +249,7 @@ def _(message, *args):


def __(message, *args):
# type: (unicode) -> unicode
# type: (unicode, *Any) -> unicode
"""A dummy wrapper to i18n'ize exceptions and command line messages.
In future, the messages are translated using LC_MESSAGES or any other
Expand Down

0 comments on commit 2150634

Please sign in to comment.