Skip to content
Myr

Apply class-body annotations to `KeepOpenFile` for consistency

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Deldycke · committed by Kevin Deldycke · parent 279ce7b · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/click/utils.py+3 added-1 removed
203 unmodified lines
204 return iter(self._f) # type: ignore205206207class KeepOpenFile:208 _file: t.IO[t.Any]209210 def __init__(self, file: t.IO[t.Any]) -> None:209 self._file: t.IO[t.Any] = file211 self._file = file212213 def __getattr__(self, name: str) -> t.Any:214 return getattr(self._file, name)215
426 unmodified lines