Skip to content

Commit

Permalink
Ignore all dunders
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Apr 30, 2024
1 parent b8227d7 commit babd703
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/sqlalchemy/util/langhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1967,14 +1967,7 @@ class TypingOnly:
def __init_subclass__(cls) -> None:
if TypingOnly in cls.__bases__:
remaining = set(cls.__dict__).difference(
{
"__module__",
"__doc__",
"__slots__",
"__orig_bases__",
"__annotations__",
"__static_attributes__",
}
{name for name in cls.__dict__ if re.match("^__.+__$", name)}
)
if remaining:
raise AssertionError(
Expand Down

0 comments on commit babd703

Please sign in to comment.