Let tfdoc understand sensitive variables (#3925)

This commit is contained in:
Julio Castillo
2026-05-01 21:59:58 +02:00
committed by GitHub
parent 8ce7afcacb
commit 80f5901191

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# Copyright 2025 Google LLC
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -119,7 +119,7 @@ VAR_RE = re.compile(r'''(?smx)
(?:^(.*?)$)
''')
VAR_RE_TYPE = re.compile(r'([\(\{\}\)])')
VAR_TEMPLATE = ('default', 'description', 'type', 'nullable')
VAR_TEMPLATE = ('default', 'description', 'type', 'nullable', 'sensitive')
Document = collections.namedtuple('Document',
'content files variables outputs recipes',