Skip to content

REPL client help is missing some commands #1686

@alexrudd2

Description

@alexrudd2

The help for the REPL client is missing some commands from help, and instead has client.{c[0]}.

pymodbus.console tcp
❯ pymodbus.console tcp

----------------------------------------------------------------------------
__________          _____             .___  __________              .__
\______   \___.__. /     \   ____   __| _/  \______   \ ____ ______ |  |
 |     ___<   |  |/  \ /  \ /  _ \ / __ |    |       _// __ \\\____ \|  |
 |    |    \___  /    Y    (  <_> ) /_/ |    |    |   \  ___/|  |_> >  |__
 |____|    / ____\____|__  /\____/\____ | /\ |____|_  /\___  >   __/|____/
           \/            \/            \/ \/        \/     \/|__|
                                        v1.3.0 - 3.5.0dev
----------------------------------------------------------------------------

> help
Available commands:
<...>
client.{c[0]}

This was caught by a ruff rule.

RUF011 Dictionary comprehension uses static key: "client.{c[0]}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions