summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-02-18 12:32:01 -0800
committerDavid Lord <davidism@gmail.com>2022-02-18 12:32:01 -0800
commite7cff2a3dcb40df267e8cf92b80396a4875dece8 (patch)
treeed5a9b32fd91a1d7ac24b8b7793e4656ecb0c63b
parent91b2cd67dd04b2843fd6c71e582876c826f5b78e (diff)
parentbf1a6d4956cbbbfd0a6f4dd6310c8110cf89f7fe (diff)
downloadclick-e7cff2a3dcb40df267e8cf92b80396a4875dece8.tar.gz
Merge branch '8.0.x'
-rw-r--r--CHANGES.rst5
-rw-r--r--src/click/utils.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 3b56ba6..50a9dea 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -22,7 +22,7 @@ Unreleased
Version 8.0.4
-------------
-Unreleased
+Released 2022-02-18
- ``open_file`` recognizes ``Path("-")`` as a standard stream, the
same as the string ``"-"``. :issue:`2106`
@@ -33,7 +33,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
diff --git a/src/click/utils.py b/src/click/utils.py
index 03fbaa7..2525e98 100644
--- a/src/click/utils.py
+++ b/src/click/utils.py
@@ -203,7 +203,7 @@ class KeepOpenFile:
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,