1. 14 Sep, 2020 1 commit
    • Philip Meier's avatar
      Add typehints for torchvision.io (#2543) · f8bf06d5
      Philip Meier authored
      
      
      * enable typing check for torchvision.io
      
      * fix existing errors
      
      * Update torchvision/io/_video_opt.py
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      
      * add ignores for FileFinder
      
      * use python 3 type hints
      
      * lint
      
      * video_opt
      
      * video
      
      * try quote av type hints
      
      * revert from .dim() to .ndim
      
      * revert changes to _video_opt.py and ignore errors
      
      * fix type hints
      
      * fix type hints for read_video_timestamps
      
      * change offset int to float
      
      * remove unused import
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      f8bf06d5
  2. 30 Jul, 2020 1 commit
  3. 11 May, 2020 1 commit
    • Philip Meier's avatar
      Add static type check with mypy (#2195) · a81d99b7
      Philip Meier authored
      * add mypy config
      
      * fix syntax error
      
      * fix annotations in torchvision/utils.py
      
      * add mypy type check to CircleCI
      
      * add mypy cache to ignore files
      
      * try fix CI
      
      * ignore flake8 F821 since it interferes with mypy
      
      * add mypy type check to config generator
      
      * explicitly set config files
      a81d99b7