mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
PyFunctionDef should also have a hasOverloads() method for quacking like a duck.
This commit is contained in:
@@ -1248,6 +1248,15 @@ class PyFunctionDef(BaseDef):
|
||||
self.overloads = []
|
||||
self.__dict__.update(kw)
|
||||
|
||||
|
||||
def hasOverloads(self):
|
||||
"""
|
||||
Returns True if there are any overloads that are not ignored.
|
||||
"""
|
||||
return bool([x for x in self.overloads if not x.ignored])
|
||||
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class PyClassDef(BaseDef):
|
||||
|
||||
Reference in New Issue
Block a user