dropbox / pyannotate

Auto-generate PEP-484 annotations
Apache License 2.0
1.43k stars 59 forks source link

Assume any arguments typed `None` are `Optional[Any]` instead. #70

Closed rowillia closed 6 years ago

rowillia commented 6 years ago

We've had a few instances where pyannotate marks a keyword argument as having type None since it hadn't observed any instances of that value being passed in, but none of those instances have been correct. It would be safer to assume the type is Optional[Any].

gvanrossum commented 6 years ago

Thanks! Good idea.