Skip to content

Commit 5afa339

Browse files
yashk2810copybara-github
authored andcommitted
Don't document __future__ imports in a module
PiperOrigin-RevId: 245586303
1 parent 450bcab commit 5afa339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/tensorflow_docs/api_generator/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,8 @@ def collect_docs_for_module(self, parser_config):
12071207

12081208
if name in ['__builtins__', '__doc__', '__file__',
12091209
'__name__', '__path__', '__package__',
1210-
'__cached__', '__loader__', '__spec__']:
1210+
'__cached__', '__loader__', '__spec__', 'absolute_import',
1211+
'division', 'print_function', 'unicode_literals']:
12111212
continue
12121213

12131214
member_full_name = self.full_name + '.' + name if self.full_name else name

0 commit comments

Comments
 (0)