Skip to content

Commit 97b7869

Browse files
committed
Rollback Iterator to Generator type hint
1 parent 9325971 commit 97b7869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotenv/variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22
from abc import ABCMeta, abstractmethod
3-
from typing import Generator, Mapping, Optional, Pattern
3+
from typing import Iterator, Mapping, Optional, Pattern
44

55
_posix_variable: Pattern[str] = re.compile(
66
r"""
@@ -67,7 +67,7 @@ def resolve(self, env: Mapping[str, Optional[str]]) -> str:
6767
return result or ""
6868

6969

70-
def parse_variables(value: str) -> Generator[Atom, None, None]:
70+
def parse_variables(value: str) -> Iterator[Atom]:
7171
cursor = 0
7272

7373
for match in _posix_variable.finditer(value):

0 commit comments

Comments
 (0)