You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The values that are supposed to be put into this function are the return values from any of the pysnmp command functions (getCmd, bulkCmd etc). The typehints you see above are correct if you compare them to the docstring of these functions.
I am however pretty certain that the docstrings are outdated. I know for a fact that error_indication can be a pysnmp.proto.errind.RequestTimedOut object (see #76). This is a subclass of the errind.ErrorIndication class, so logically the error_indication value can probably be any type of errind.ErrorIndication. From examples online, I've seen that the value can also be None, but I have not seen any examples of it actually returning a str.
I've also seen error_status return an int, but I can't recall seeing it return a str as the docstring states it should.
The text was updated successfully, but these errors were encountered:
The current
_handle_errors
looks like this:The values that are supposed to be put into this function are the return values from any of the pysnmp command functions (
getCmd
,bulkCmd
etc). The typehints you see above are correct if you compare them to the docstring of these functions.I am however pretty certain that the docstrings are outdated. I know for a fact that
error_indication
can be apysnmp.proto.errind.RequestTimedOut
object (see #76). This is a subclass of theerrind.ErrorIndication
class, so logically theerror_indication
value can probably be any type oferrind.ErrorIndication
. From examples online, I've seen that the value can also beNone
, but I have not seen any examples of it actually returning astr
.I've also seen
error_status
return anint
, but I can't recall seeing it return astr
as the docstring states it should.The text was updated successfully, but these errors were encountered: