You're viewing a single thread.
View all comments
27
comments
Besides the obvious flaws... is that parameter a list named
list
, shadowing thelist()
constructor?11 0 ReplyIt works as long as you don't call
list()
within that function.5 0 ReplyThat is a type hint
1 3 ReplyWell 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
3 0 Reply
You've viewed 27 comments.
Scroll to top