Commits

1st1 committed 0877f62

pep 362: Remove last staticmethod check from signature()

Comments (0)

Files changed (1)

             # Now we check if the 'obj' class has a '__new__' method
             new = _get_user_defined_method(obj, '__new__')
             if new is not None:
-                if isinstance(new, staticmethod):
-                    new = new.__func__
                 sig = signature(new)
             else:
                 # Finally, we should have at least __init__ implemented