@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year agoReturns a sorted list in O(1) timeprogramming.devimagemessage-square27arrow-up1294
arrow-up1294imageReturns a sorted list in O(1) timeprogramming.dev@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year agomessage-square27
minus-squareTrailblazing Braille Taserlinkfedilink3•1 year 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