RSSAmplifier

Logan Connolly · Oct 25, 2024

new typing syntax

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Have you ever seen this at the top of a Python module? 
 T = TypeVar ( 'T' ) 
 TN = TypeVar ( 'TN' , int , float ) 
 TS = TypeVar ( 'TS' , bound = Sized ) 
 TD = TypeVar ( 'TD' , Decimal , float ) 
 And then scratched your head, wondering what it means? 
 Well these are generic parameter types - or at least the old way of defining
them. In June 2022, Eric Traut proposed…

Read on loganconnolly.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.