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

Using the @singleton errors on default metaclass. #19

Open
dangle opened this issue Oct 11, 2018 · 0 comments
Open

Using the @singleton errors on default metaclass. #19

dangle opened this issue Oct 11, 2018 · 0 comments
Labels

Comments

@dangle
Copy link
Contributor

dangle commented Oct 11, 2018

When using @singleton on a class that does not inherit from Object (no other metaclasses defined) throws an exception.

Traceback (most recent call last):
  File "<input>", line 1, in <module>
    @singleton
  File "/home/dangle/Projects/contains.io/containment/.tox/py36/lib/python3.6/site-packages/typet/meta.py", line 58, in _inner
    class _Meta(base, _Meta):  # pylint: disable=function-redefined
TypeError: Cannot create a consistent method resolution
order (MRO) for bases type, Singleton
@dangle dangle added the bug label Oct 11, 2018
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