Skip to content

Commit 4076b17

Browse files
AbishekSfacebook-github-bot
authored andcommitted
Named resourced stubs
Summary: Internal Generate stubs for all the methods generated by the decorator of `named_resources`. Previous attempt reverted D83985902 because of autodeps issues. Genrule that looks at the all the named_resources and generates a file `named_resources.pyi` which is used by the test. Three targets added 1. `//torchx/fb:named_resources_gen` 2. `//torchx/specs:named_resources_stubs` 3. `//torchx/specs:named_resources_stubs_lib` Use `//torchx/specs:named_resources_stubs_lib` in the test target. Modify some named resources as well. Differential Revision: D86111386
1 parent dd683f4 commit 4076b17

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchx/specs/test/named_resources_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# pyre-strict
99

1010

11-
import os
1211
import unittest
1312
from unittest.mock import MagicMock, patch
1413

0 commit comments

Comments
 (0)