Skip to content

Commit a88dd7e

Browse files
zonglinpengfacebook-github-bot
authored andcommitted
fixed typing and orderdict import
Summary: ^ Reviewed By: manuelcandales Differential Revision: D59492834 fbshipit-source-id: bd53ee32989984d9c20f17f62cfd52429e38a375
1 parent 7c5c7c7 commit a88dd7e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

inputgen/argtuple/gen.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# This source code is licensed under the license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
from typing import Any, List, OrderedDict, Tuple
7+
from collections import OrderedDict
8+
from typing import Any, Generator, List, Tuple
89

910
from inputgen.argtuple.engine import MetaArgTupleEngine
1011
from inputgen.argument.engine import MetaArg
@@ -38,7 +39,9 @@ def gen_tuple(
3839

3940
def gen(
4041
self, *, valid: bool = True, out: bool = False
41-
) -> Tuple[List[Any], OrderedDict[str, Any]]:
42+
) -> Generator[
43+
Tuple[List[Any], OrderedDict[str, Any], OrderedDict[str, Any]], Any, Any
44+
]:
4245
engine = MetaArgTupleEngine(self.spec, out=out)
4346
for meta_tuple in engine.gen(valid=valid):
4447
yield self.gen_tuple(meta_tuple, out=out)

0 commit comments

Comments
 (0)