We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 161fe3d commit 8956731Copy full SHA for 8956731
1 file changed
extensions/ql-vscode/src/model-editor/languages/python/access-paths.ts
@@ -112,7 +112,10 @@ export function pythonPath(
112
export function pythonEndpointType(
113
method: Omit<MethodDefinition, "endpointType">,
114
): EndpointType {
115
- if (method.methodParameters.startsWith("(self,")) {
+ if (
116
+ method.methodParameters.startsWith("(self,") ||
117
+ method.methodParameters === "(self)"
118
+ ) {
119
return EndpointType.Method;
120
}
121
return EndpointType.Function;
0 commit comments