Use Parameters instead of Attributes in docstrings to fix duplicate object warnings
Napoleon's Attributes section creates class-level attribute docs that duplicate the __init__ parameter docs when napoleon_include_init_with_doc is enabled. Using Parameters avoids the duplication.
This commit is contained in:
@@ -40,7 +40,7 @@ class TranscriptHandler:
|
||||
Maintains a list of conversation messages and outputs them either to a log
|
||||
or to a file as they are received. Each message includes its timestamp and role.
|
||||
|
||||
Attributes:
|
||||
Parameters:
|
||||
messages: List of all processed transcript messages
|
||||
output_file: Optional path to file where transcript is saved. If None, outputs to log only.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user