Skip to content

Commit

Permalink
Check for dunder names
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 authored Oct 16, 2023
1 parent 25ef492 commit 383575f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/betterproto/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __new__(
members = {
name: value
for name, value in namespace.items()
if not _is_descriptor(value) and name[0] != "_"
if not _is_descriptor(value) and not name.startswith("__")
}

cls = type.__new__(
Expand Down

0 comments on commit 383575f

Please sign in to comment.