]> git.ipfire.org Git - thirdparty/babel.git/commit
Add explicit signatures to some date autofunctions 554/head
authorxmo-odoo <xmo@odoo.com>
Fri, 26 Jan 2018 10:14:57 +0000 (11:14 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Jan 2018 10:14:57 +0000 (11:14 +0100)
commit57832c6e3d3b6513d66a3825de9bf537bb07be17
treeb318861459b2f76469e3840a375a234713baa2f2
parentd72eb13d027ae9f8813c335974a6c2198320161f
Add explicit signatures to some date autofunctions

Because default_locale is eager, it generates misleading documentation when built (including on the site) as the doc will show the LC_TIME for the machine which built the doc.

An explicit autofunction signature fixes that and provides a more correct view of the signature.

An alternative fix would be for the LC_TIME value in the module to be a custom object with a repr of LC_TIME or something along those lines.

Fixes #542
docs/api/dates.rst