]> granicus.if.org Git - python/commitdiff
Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren Guthrie
authorKurt B. Kaiser <kbk@shore.net>
Sun, 23 Jul 2006 04:19:49 +0000 (04:19 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sun, 23 Jul 2006 04:19:49 +0000 (04:19 +0000)
Lib/idlelib/CallTips.py
Lib/idlelib/NEWS.txt

index 47a1d55d3b05c7f6681670165dc0947ad235f0c0..997eb13a0f9fb5314033aaedba57ad26b4386ef5 100644 (file)
@@ -127,7 +127,7 @@ def get_arg_text(ob):
     argText = ""
     if ob is not None:
         argOffset = 0
-        if type(ob)==types.ClassType:
+        if type(ob) in (types.ClassType, types.TypeType):
             # Look for the highest __init__ in the class chain.
             fob = _find_constructor(ob)
             if fob is None:
index 4dc25057da90d81c15d04eb60013795fca9c7047..5ea5b0e70271e6d830fc5166f2d457537a26fcb1 100644 (file)
@@ -3,6 +3,8 @@ What's New in IDLE 1.2c1?
 
 *Release date: XX-XXX-2006*
 
+- Tooltips failed on new-syle class __init__ args.  Bug 1027566 Loren Guthrie
+
 - Avoid occasional failure to detect closing paren properly.
   Patch 1407280 Tal Einat