Skip to content

Commit 2caa7ba

Browse files
committed
fix: name err
1 parent f596041 commit 2caa7ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx_autodoc_vyper/parser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ class Event:
150150
params: List[EventParameter]
151151

152152
def generate_docs(self) -> str:
153-
content = f".. py:class:: {event.name}\n\n"
154-
for field in event.fields:
153+
content = f".. py:class:: {self.name}\n\n"
154+
for field in self.fields:
155155
type_str = f"indexed({field.type})" if field.indexed else field.type
156156
content += f" .. py:attribute:: {field.name}\n\n"
157157
content += f" {type_str}\n\n"

0 commit comments

Comments
 (0)