Skip to content
Merged
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
14 changes: 13 additions & 1 deletion crates/stdlib/src/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ mod decl {
}
}

#[derive(FromArgs)]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required AI-assistance trailers

This AI-authored commit identifies Codex as its author/committer and includes CodeRabbit-generated content, but its commit message contains no Assisted-by: AGENT_NAME:MODEL_VERSION trailer. Add one trailer for each AI tool used before merging so the commit complies with the repository's mandatory AI-disclosure policy.

AGENTS.md reference: AGENTS.md:L20-L23

Useful? React with 👍 / 👎.

struct EpollUnregisterArgs {
#[pyarg(any)]
fd: PyObjectRef,
}

#[derive(FromArgs)]
struct EpollModifyArgs {
#[pyarg(any)]
Expand Down Expand Up @@ -631,7 +637,13 @@ mod decl {
}

#[pymethod]
fn unregister(zelf: &Py<Self>, fd: Fildes, vm: &VirtualMachine) -> PyResult<()> {
fn unregister(
zelf: &Py<Self>,
args: EpollUnregisterArgs,
vm: &VirtualMachine,
) -> PyResult<()> {
// Validate the argument shape before fileno() can run Python code.
let fd = Fildes::try_from_object(vm, args.fd)?;
let epoll_fd = &*zelf.get_epoll(vm)?;
host_select::epoll::delete(epoll_fd, fd.as_raw_fd())
.map_err(|e| e.into_pyexception(vm))
Expand Down
Loading