pytype: pass --strict-none-binding to pytype
Without this option, pytype sometimes assigns type Any to a variable even though it clearly can be None. The following is a typing error which is catched with this option but not without: x = None def f(): return x.upper()