We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b647684 commit ff989f0Copy full SHA for ff989f0
tools/tensorflow_docs/api_generator/signature.py
@@ -580,7 +580,7 @@ def generate_signature(
580
581
sig = sig.replace(parameters=params)
582
583
- if dataclasses.is_dataclass(func):
+ if dataclasses.is_dataclass(func) and inspect.isclass(func):
584
sig = sig.replace(return_annotation=EMPTY)
585
extract_fn = _extract_class_defaults_and_annotations
586
else:
0 commit comments