JPDev@programming.dev to Programmer Humor@programming.dev · 10 months agoReturns a sorted list in O(1) timeprogramming.devimagemessage-square18fedilinkarrow-up1232arrow-down113
arrow-up1219arrow-down1imageReturns a sorted list in O(1) timeprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square18fedilink
minus-squareSpecies5218@sh.itjust.workslinkfedilinkarrow-up1arrow-down3·10 months agoThat is a type hint
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up3·10 months agoWell duh. I wonder what happens if you shadow the list constructor and try to use it as a type hint… def foo(list: list): def bar(thingies: list): pass
That is a type hint
Well duh. I wonder what happens if you shadow the list constructor and try to use it as a type hint…
def foo(list: list): def bar(thingies: list): pass