Elektrine lite

← Feed

@myself@mastodon.online

Post #717782

2026-03-02 21:22 UTC

@AlSweigart I don't know about the why. But it works. I think `...` indicates to the reader that 'something in missing here' as supposed to `pass` which indicates 'do nothing'

Replies (1)

  • @SnoopJ@hachyderm.io 2026-03-02 21:26

    @myself@mastodon.online @AlSweigart@mastodon.social ... is used in type stubs as a soft signal that there is no implementation because the implementation is irrelevant (only the signature) In non-stub code, I think it's all aesthetic. I use ... in examples sometimes, but would only use pass in 'real' code if I had a do-nothing impl.

    Open ##2787039