Closed mikepii closed 2 years ago
Result is defined as:
Result
https://github.com/explodinglabs/jsonrpcserver/blob/f489ed886f68b893ec95c38297ea84c5df2c5adb/jsonrpcserver/result.py#L34
However, the runtime values are reversed:
https://github.com/explodinglabs/jsonrpcserver/blob/f489ed886f68b893ec95c38297ea84c5df2c5adb/jsonrpcserver/dispatcher.py#L105-L114
Therefore mypy complains if users type their methods with -> Result.
-> Result
Are you able to send a PR for this?
Otherwise I can do it later today.
Thanks for reporting by the way.
sure, I'll send a PR
Result
is defined as:https://github.com/explodinglabs/jsonrpcserver/blob/f489ed886f68b893ec95c38297ea84c5df2c5adb/jsonrpcserver/result.py#L34
However, the runtime values are reversed:
https://github.com/explodinglabs/jsonrpcserver/blob/f489ed886f68b893ec95c38297ea84c5df2c5adb/jsonrpcserver/dispatcher.py#L105-L114
Therefore mypy complains if users type their methods with
-> Result
.