TypeError while instantiating LoggingHandler (2.6) · Issue #66 · pre-commit/pre-commit · GitHub
Skip to content

TypeError while instantiating LoggingHandler (2.6) #66

Description

@asottile

I assume this is new-style vs old-style classes being grumpy?

>>> from pre_commit.logging_handler import LoggingHandler
>>> LoggingHandler(True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../py_env/lib/python2.6/site-packages/pre_commit/logging_handler.py", line 19, in __init__
    super(LoggingHandler, self).__init__()
TypeError: super() argument 1 must be type, not classobj

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions