i18n module: correctly annotate the availability of data_dirs

It was originally forgotten in merge_file() and later added for parity
with gettext(). This means that the FeatureNew for each function is
different.
pull/9685/head
Eli Schwartz 3 years ago
parent 69e1f5bb9a
commit 172fa4d3b2
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      mesonbuild/modules/i18n.py

@ -138,7 +138,7 @@ class I18nModule(ExtensionModule):
CT_OUTPUT_KW,
INSTALL_KW,
_ARGS.evolve(since='0.51.0'),
_DATA_DIRS,
_DATA_DIRS.evolve(since='0.41.0'),
KwargInfo('po_dir', str, required=True),
KwargInfo('type', str, default='xml', validator=in_set_validator({'xml', 'desktop'})),
)
@ -188,7 +188,7 @@ class I18nModule(ExtensionModule):
@typed_kwargs(
'i18n.gettext',
_ARGS,
_DATA_DIRS,
_DATA_DIRS.evolve(since='0.36.0'),
INSTALL_KW.evolve(default=True),
KwargInfo('install_dir', (str, NoneType), since='0.50.0'),
KwargInfo('languages', ContainerTypeInfo(list, str), default=[], listify=True),

Loading…
Cancel
Save