From 0928da10e489b74ccba544ad4fcb618f4f3c25ac Mon Sep 17 00:00:00 2001 From: Rohan Varma Date: Tue, 29 Mar 2022 05:42:41 -0700 Subject: [PATCH] [FSDP] exclude from typing (#74833) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/74833 FSDP has 74 type ignores and more being added, it may be better to exclude from typechecking until we can type it properly. ghstack-source-id: 152354450 Test Plan: CI Reviewed By: zhaojuanmao Differential Revision: D35186441 fbshipit-source-id: d06d90a06dcdbd38033adc70d0e9374333d4dc9a (cherry picked from commit 4b410e1480abeeb672ce14274215ef55bcf3285d) --- mypy.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy.ini b/mypy.ini index a3ec144806e4..61442c1a7d69 100644 --- a/mypy.ini +++ b/mypy.ini @@ -41,7 +41,7 @@ files = # # `exclude` is a regex, not a list of paths like `files` (sigh) # -exclude = torch/include/|torch/csrc/|torch/distributed/elastic/agent/server/api.py|torch/testing/_internal +exclude = torch/include/|torch/csrc/|torch/distributed/elastic/agent/server/api.py|torch/testing/_internal|torch/distributed/fsdp/fully_sharded_data_parallel.py # Minimum version supported - variable annotations were introduced # in Python 3.7