Yeah... that's not the best way to communicate it. From the output I can't tell if gpiod.line_settings is a type or an instance of type. Anyways. This message is "inherited", i.e. the author of the library didn't intend for it to show up, probably didn't even know you'll see it. And, in your specific case is meaningless, as you've got a perfectly detailed signature already.
Traditionally, the arguments for constructor, in Python, used to be described in the doc string of the type, not the constructor. So, in case you request the help for the constructor, you might not get the documentation the author intended for you to see. But it's all water under the bridge now. And, if you ask me, I think this message is useless. On Sun, Mar 15, 2026 at 1:23 PM Chris Green <[email protected]> wrote: > > I see this message in several places in the help() output for gpiod: > "See help(type(self)) for accurate signature.", but I can't work out > what I actually need to type into help() to get a result. > > So, for example, I say 'help("gpiod.line_settings")', I see, among > other things:- > > | __init__( > | self, > | direction: gpiod.line.Direction = <Direction.AS_IS: 1>, > | edge_detection: gpiod.line.Edge = <Edge.NONE: 1>, > | bias: gpiod.line.Bias = <Bias.AS_IS: 1>, > | drive: gpiod.line.Drive = <Drive.PUSH_PULL: 1>, > | active_low: bool = False, > | debounce_period: datetime.timedelta = datetime.timedelta(0), > | event_clock: gpiod.line.Clock = <Clock.MONOTONIC: 1>, > | output_value: gpiod.line.Value = <Value.INACTIVE: 0> > | ) -> None > | Initialize self. See help(type(self)) for accurate signature. > > What do I actually need to type to get that "accurate signature"? > > (Yes, I know it's a private[ish] method but this is just the first > example I could find) > > > -- > Chris Green > · > -- > https://mail.python.org/mailman3//lists/python-list.python.org -- https://mail.python.org/mailman3//lists/python-list.python.org
