puresnmp.typevars module

This module contains variour type aliases for type checking

class puresnmp.typevars.SocketInfo(address: str, port: int)

Bases: object

A simple tuple containing an IP address and port number

address: str
port: int
class puresnmp.typevars.SocketResponse(data: bytes, info: SocketInfo)

Bases: object

Metadata for socket responses

data: bytes
info: SocketInfo
class puresnmp.typevars.TWrappedPyType

This is a type variable helps to properly hint functions which take in a “puresnmp” type and return a pythonic type

alias of TypeVar(‘TWrappedPyType’)