Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sillystrings/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import mmap
import os
import sys
from collections.abc import Iterator
from collections.abc import Generator
from dataclasses import dataclass
from pathlib import Path
from typing import get_args
Expand Down Expand Up @@ -42,7 +42,7 @@ class Source:


@contextlib.contextmanager
def open_source(name: str) -> Iterator[Source]:
def open_source(name: str) -> Generator[Source]:
"""Open a file, or stdin for "-", as a Source valid for the with block.

Files are memory-mapped rather than read, so the OS pages them in as the
Expand Down
Loading