dropbox / dropbox/pyannotate

Always add Optional[] when an arg has a default of None

Open
#1 0 comments 5 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.4k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Methods that have `arg=None` arguments are sometimes not marked as `Optional` because they are never passed a `None` parameter during the run. It would be nice if it could infer that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.