diff --git a/docs/source/literal_types.rst b/docs/source/literal_types.rst index a66d300bd0fd..0128c77f0ec6 100644 --- a/docs/source/literal_types.rst +++ b/docs/source/literal_types.rst @@ -29,8 +29,8 @@ precise type signature for this function using ``Literal[...]`` and overloads: @overload def fetch_data(raw: Literal[False]) -> str: ... - # The last overload is a fallback in case the caller - # provides a regular bool: + # The last overload is a fallback due to a limitation in mypy: + # https://github.com/python/mypy/issues/14764 @overload def fetch_data(raw: bool) -> Union[bytes, str]: ...