Skip to content

Commit

Permalink
replace constant by function call
Browse files Browse the repository at this point in the history
  • Loading branch information
nanne-aben committed Nov 8, 2023
1 parent e906099 commit 2bb40ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typedspark/_schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ class A(Schema):
"""
if (
name.startswith("__")
or name in ["_attributes", "_abc_impl", "_is_protocol", "_is_runtime_protocol"]
or name == "_attributes"
or name in cls._attributes
or name in dir(Protocol)
):
return object.__getattribute__(cls, name)

Expand Down

0 comments on commit 2bb40ea

Please sign in to comment.