Skip to content

Rename list_ to list and time_ to time - #5770

Draft
seto wants to merge 4 commits into
robotframework:masterfrom
seto:rename-list-time-args
Draft

seto wants to merge 4 commits into
robotframework:masterfrom
seto:rename-list-time-args

Conversation

@seto

@seto seto commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Opening this draft since, per the discussion on the issue, this can only be merged once RF 8.0 development starts.
I'll keep the branch updated and handle any conflicts until then, and I'll also go through the other standard libraries to check for similar cases before this is ready for review.

Changes

  • Renamed list_ to list in Collections
  • Renamed time_ to time in BuiltIn.Sleep and BuiltIn.Get Time
  • Check other standard libraries for similar cases

Where present, deprecation notes have been removed from the affected docstrings.

Closes #5762

Copilot AI lite review requested due to automatic review settings August 29, 2026 18:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Robot Framework standard library keyword argument names to use more natural identifiers (list and time) instead of the long-standing _-suffixed variants, aligning with the planned RF 8.0 backwards-incompatible cleanup discussed in #5762.

Changes:

  • Renamed list_ → list in Collections library keyword signatures and docstrings.
  • Renamed time_ → time in BuiltIn Sleep and Get Time keyword signatures and docstrings.
  • Updated acceptance tests that use named-argument syntax and/or assert argument-name-based error messages.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/robot/libraries/Collections.py Renames list_ parameters to list across affected keywords and adjusts implementation/docstrings (incl. aliasing builtin list type where needed).
src/robot/libraries/BuiltIn.py Renames Sleep and Get Time keyword argument time_ to time and updates references accordingly.
atest/testdata/standard_libraries/collections/list.robot Updates test helper default argument name from list_ to list.
atest/testdata/standard_libraries/builtin/sleep.robot Updates expected error message to reference argument time instead of time_.
atest/testdata/standard_libraries/builtin/get_time.robot Updates named-argument usage from time_= to time=.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/robot/libraries/Collections.py Resolved
Copilot AI review requested due to automatic review settings August 29, 2026 18:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@seto
seto force-pushed the rename-list-time-args branch from d8fdc70 to 829fff2 Compare October 17, 2026 10:02
Copilot AI lite review requested due to automatic review settings October 17, 2026 10:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Add named-argument regression tests and remove the stale time_ warning.

1 open issue

Review effort: Lite

Comment thread src/robot/libraries/BuiltIn.py Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collections and Builtin: Rename list_ argument to list and time_ argument to time

2 participants