Mercurial > hg
diff mercurial/registrar.py @ 37227:9bcf096a2da2
templatefilters: declare input type as date where appropriate
I'm not sure if the templateutil.date type can be a thing. Currently it's
just a constant.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Mar 2018 16:12:44 +0900 |
parents | 54355c243042 |
children | dfc51a482031 |
line wrap: on
line diff
--- a/mercurial/registrar.py Tue Mar 20 22:57:36 2018 +0900 +++ b/mercurial/registrar.py Sun Mar 18 16:12:44 2018 +0900 @@ -333,7 +333,7 @@ The first string argument is used also in online help. Optional argument 'intype' defines the type of the input argument, - which should be (bytes, int, or None for any.) + which should be (bytes, int, templateutil.date, or None for any.) 'templatefilter' instance in example above can be used to decorate multiple functions.