Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Chris Green Newsgroups: comp.lang.python Subject: What does this "See help(type(self)) for accurate signature." actually mean? Date: Sun, 15 Mar 2026 09:05:08 +0000 Lines: 29 Message-ID: <4b9i8m-p1m93.ln1@q957.zbmc.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 4nQdYdC7wraIOrzZIjw25QgjOv0z2S+Lk6bG5bs5M7cm9WHag= X-Orig-Path: not-for-mail Cancel-Lock: sha1:q8bT2O7+NMCPVCz/6Pcj1NQPWWw= sha256:021+szk+763dO6irEjZaM5OzfGvEuDmTkJDJCUNPY8k= User-Agent: tin/2.6.5-20250409 ("Helmsdale") (Linux/6.12.63+deb13-amd64 (x86_64)) Xref: csiph.com comp.lang.python:197729 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 = , | edge_detection: gpiod.line.Edge = , | bias: gpiod.line.Bias = , | drive: gpiod.line.Drive = , | active_low: bool = False, | debounce_period: datetime.timedelta = datetime.timedelta(0), | event_clock: gpiod.line.Clock = , | output_value: gpiod.line.Value = | ) -> 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 ยท