Skip to content

Commit

Permalink
Merge pull request #2187 from Yourun-proger/fix_type
Browse files Browse the repository at this point in the history
Fix type for `file` argument in `click.echo` function
  • Loading branch information
davidism authored Feb 18, 2022
2 parents e8b350b + bda6381 commit 8640699
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 8640699

Please sign in to comment.