mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow each instance of PyCallableType to tell whether it's actually callable or not; distinguish class definition and class instance for Java class types; correctly treat Java constructors as callable (PY-4269)
This commit is contained in:
@@ -11,6 +11,11 @@ import org.jetbrains.annotations.Nullable;
|
||||
* @author yole
|
||||
*/
|
||||
public interface PyCallableType extends PyType {
|
||||
/**
|
||||
* Returns true if the type is callable.
|
||||
*/
|
||||
boolean isCallable();
|
||||
|
||||
/**
|
||||
* Returns the type which is the result of calling an instance of this type.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user