Skip to content

Suppress return type warnings in base.py so build will be green #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Suppress return type warnings in client/base.py so build will be gree…
…n; fix later when other warnings are fixed
  • Loading branch information
c0llab0rat0r committed Apr 7, 2021
commit 885e38204ac3624bebf8c81b34f894a7eaa43b33
6 changes: 3 additions & 3 deletions ipfshttpclient/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def wrapper2(*args: ty.Any, **kwargs: ty.Any) \
"when not streaming a response"
)
return ResponseWrapIterator(result, item_wrap_cb)
return wrapper2
return wrapper2 # type: ignore[return-value]
return wrapper1


Expand Down Expand Up @@ -256,7 +256,7 @@ def wrapper2(*args: ty.Any, **kwargs: ty.Any) \
"with a single item, when not streaming a response"
)
return ResponseWrapIterator(result, item_wrap_cb)
return wrapper2
return wrapper2 # type: ignore[return-value]
return wrapper1


Expand Down Expand Up @@ -285,7 +285,7 @@ def wrapper(*args: ty.Any, **kwargs: ty.Any) \
"object, when not streaming a response"
)
return ResponseWrapIterator(result, ident)
return wrapper
return wrapper # type: ignore[return-value]


S = ty.TypeVar("S", bound="SectionBase")
Expand Down