Bug report
Hi, I'm trying to curry a class constructor, but mypy complains
What's wrong
# main.py
from returns.curry import curry
@curry
class Person:
def __init__(self, name: str, age: int):
self.name = name
self.age = age
Person("bob")(33)
$ mypy main.py
main.py:10: error: Missing positional argument "age" in call to "Person"
main.py:10: error: "Person" not callable
Found 2 errors in 1 file (checked 1 source file)
Here is my mypy.ini file:
[mypy]
plugins =
returns.contrib.mypy.returns_plugin
How is that should be
mypy should not report any error
System information
Bug report
Hi, I'm trying to curry a class constructor, but mypy complains
What's wrong
Here is my mypy.ini file:
How is that should be
mypy should not report any error
System information
pythonversion: 3.10.4returnsversion: 0.19.0mypyversion: 0.971hypothesisversion (if any): not installedpytestversion (if any): not installed