Ancestors

Toot

Written by Pamela Fox on 2024-12-06 at 22:52

TIL: tuple[float] isn't the way to convey a tuple of floats, because tuples commonly contain different types. instead you must do tuple[float,float,float] for 3 floats or tuple[float,...] for any length

https://docs.python.org/3/library/typing.html#annotating-tuples

=> More informations about this toot | More toots from pamelafox@fosstodon.org

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113608331471528789
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
403.352467 milliseconds
Gemini-to-HTML Time
0.275908 milliseconds

This content has been proxied by September (ba2dc).