Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7c028773209651a50c77e6d36a935bcf3ee837b7 1 parent 4ea7e19
Aaron Iles authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  funcsigs/__init__.py
View
2  funcsigs/__init__.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.