mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-06 03:23:23 +08:00
Add --strict-optional flag to mypy (#368)
This commit is contained in:
committed by
Jukka Lehtosalo
parent
e05edb60f1
commit
f47ff0b966
@@ -116,6 +116,7 @@ def main():
|
||||
if files:
|
||||
runs += 1
|
||||
flags = ['--python-version', '%d.%d' % (major, minor)]
|
||||
flags.append('--strict-optional')
|
||||
sys.argv = ['mypy'] + flags + files
|
||||
if args.verbose:
|
||||
print("running", ' '.join(sys.argv))
|
||||
|
||||
Reference in New Issue
Block a user