You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't require type annotations for locals when using --check-untyped-defs #8558
Activity
JukkaL commentedon Mar 20, 2020
The issue is about cases like this, which currently generate an error:
I think that not generating an error here should just be the default behavior. This would be a logical continuation of changes introduced in #7530.
[-]--check-untyped-defs-lite[/-][+]Don't require type annotations for locals when using --check-untyped-defs[/+]JukkaL commentedon Mar 20, 2020
@msullivan @ilevkivskyi Do you agree with me?
ilevkivskyi commentedon Mar 23, 2020
If the function itself has no annotations then yes, it would make sense to not require annotations for locals.