Skip to content

Commit 218ab55

Browse files
author
Scott Sanderson
committed
BUG: Don't invoke descriptor protocol in py2.
1 parent 8592b3e commit 218ab55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def from_class(cls, existing_class, subset=None, name=None):
298298
return InterfaceMeta(
299299
name,
300300
(Interface,),
301-
{name: getattr(existing_class, name) for name in subset},
301+
{name: static_get_type_attr(existing_class, name) for name in subset},
302302
)
303303

304304

0 commit comments

Comments
 (0)