Skip to content

Commit 85ada59

Browse files
committed
Address pyright "partially unknown" message
1 parent e6a1655 commit 85ada59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msrc-appconfig/msrc/appconfig/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import annotations
2-
from typing import Any, Dict, List, Mapping, Optional
2+
from typing import Any, Dict, Generator, List, Mapping, Optional
33
from typing import Sequence, Tuple, Type, TypeVar, Union
44
"""Flexible typed application configuration."""
55
import itertools
@@ -329,7 +329,7 @@ def to_arg_dict(
329329

330330
def to_argv(instance: object) -> List[str]:
331331
"""Generates a flat list of cmdline options to reproduce the instance."""
332-
def generator():
332+
def generator() -> Generator[str, None, None]:
333333
for option, value in to_arg_dict(instance).items():
334334
yield option
335335
if isinstance(value, str):

0 commit comments

Comments
 (0)