Permalink
Browse files

Special case the type object fail

Due to differences between PyPy and CPython the type object needs to be
special cased to raise a ValueError on PyPy as well as CPython.
  • Loading branch information...
1 parent 4ea7e19 commit 7c028773209651a50c77e6d36a935bcf3ee837b7 Aaron Iles committed Jan 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 funcsigs/__init__.py
View
@@ -38,6 +38,8 @@ def formatannotation(annotation, base_module=None):
def _get_user_defined_method(cls, method_name, *nested):
try:
+ if cls is type:
+ return
meth = getattr(cls, method_name)
for name in nested:
meth = getattr(meth, name, meth)

0 comments on commit 7c02877

Please sign in to comment.