{"by":"stefanka","descendants":12,"id":32068447,"kids":[32083937,32088765,32082701,32082469],"score":58,"text":"Greetings! A 2.5 weekends project to teach myself newer Python features (&gt;= 3.10). Conditions are written as Lambda expressions that annotate parameters and return types, and coexist with type annotations. Symbols to share values between conditions are also supported to a limited extend.","time":1657626215,"title":"Show HN: A design-by-contract Python package in ~100 lines","type":"story","url":"https://github.com/StefanUlbrich/design-by-contract"}