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
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion ipfshttpclient/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import os
import typing as ty
import warnings

import multiaddr

Expand Down
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