jmespath / jmespath/jmespath.py

False positive with mypy

Open
#305 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

Defining a customFunctions, like this:
```
class CustomFunctions(jmespath.functions.Functions):
@jmespath.functions.signature({'types': ['object']}, {'types': ['array']})
def _func_map_merge(self, obj: str, arg: list[dict[str, str]]) -> list[dict[str, str]]:
result = []
for element in arg:
merged_object = super()._func_merge(obj, element)
result.append(merged_object)
return result
```
Drop the following error

```
error: "_func_merge" undefined in superclass
```

I think it should be some missing information on stubs

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.