Skip to content

Commit

Permalink
Fix type for file argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Yourun-proger authored and davidism committed Feb 18, 2022
1 parent e8b350b commit bda6381
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Unreleased
- Fix a typo in the Bash completion script that affected file and
directory completion. If this script was generated by a previous
version, it should be regenerated. :issue:`2163`
- Fix typing for ``secho`` file argument. :issue:`2174`
- Fix typing for ``echo`` and ``secho`` file argument.
:issue:`2174, 2185`


Version 8.0.3
Expand Down
2 changes: 1 addition & 1 deletion src/click/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __iter__(self) -> t.Iterator[t.AnyStr]:

def echo(
message: t.Optional[t.Any] = None,
file: t.Optional[t.IO] = None,
file: t.Optional[t.IO[t.Any]] = None,
nl: bool = True,
err: bool = False,
color: t.Optional[bool] = None,
Expand Down

0 comments on commit bda6381

Please sign in to comment.