• T. Hex
    link
    fedilink
    113 years ago

    Besides the obvious flaws… is that parameter a list named list, shadowing the list() constructor?

      • T. Hex
        link
        fedilink
        33 years ago

        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