@wrap_exceptions
    def get_connections(self, kind='inet'):
        if conn_tmap not in kind:
            raise ValueError("invalid %r kind argument; choose between %s"
                             % (kind, ', '.join([repr(x) for x in conn_tmap])))
        families, types = conn_tmap[kind]
        ret = _psutil_mswindows.get_process_connections(self.pid, families, types)
        return [nt_connection(*conn) for conn in ret]
dataset/ETHPy150Open packages/psutil/psutil/_psmswindows.py/Process.get_connections/swapped operands of `not in`