Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect.getmembers(InterfaceClass) causes TypeError #249

Open
d-maurer opened this issue Oct 2, 2021 · 0 comments
Open

inspect.getmembers(InterfaceClass) causes TypeError #249

d-maurer opened this issue Oct 2, 2021 · 0 comments
Labels

Comments

@d-maurer
Copy link
Contributor

d-maurer commented Oct 2, 2021

Python 3; zope.interface==5.1.2

>>> from zope.interface import Interface
>>> from inspect import getmembers
>>> getmembers(type(Interface))
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python3.6/inspect.py", line 342, in getmembers
    value = getattr(object, key)
  File ".../eggs/zope.interface-5.1.2-py3.6-linux-x86_64.egg/zope/interface/declarations.py", line 394, in implementedBy
    spec_name = _implements_name(cls)
  File ".../eggs/zope.interface-5.1.2-py3.6-linux-x86_64.egg/zope/interface/declarations.py", line 292, in _implements_name
    '.' + (getattr(ob, '__name__', '?') or '?')
TypeError: unsupported operand type(s) for +: 'property' and 'str'
@d-maurer d-maurer added the bug label Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant