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.
2 parents 5e9d69c + ebc9337 commit 414542fCopy full SHA for 414542f
other/templates/py/struct.j2
@@ -24,7 +24,7 @@ class {{ name.upper_camel_case }}:
24
self.{{ field.name.lower_snake_case }} = {{ field.name.lower_snake_case }}
25
{%- endfor %}
26
27
- def __equals__(self, to_compare):
+ def __eq__(self, to_compare):
28
""" Checks if two {{ name.upper_camel_case }} are the same """
29
try:
30
# Try to compare - this likely fails when it is compared to a non
0 commit comments