Skip to content

Commit

Permalink
Fix typing in click.secho function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonxslays committed Jan 16, 2022
1 parent 928ee5b commit 0f5dd61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -14,6 +14,7 @@ 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 ``click.secho`` file argument. :issue:`2174`


Version 8.0.3
Expand Down
2 changes: 1 addition & 1 deletion src/click/termui.py
Expand Up @@ -624,7 +624,7 @@ def unstyle(text: str) -> str:

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

0 comments on commit 0f5dd61

Please sign in to comment.