Skip to content

Commit

Permalink
Fix issue with Callable, Union, and Python 3.9 [mqtt] (home-assistant…
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Dec 8, 2022
1 parent b2edf9b commit 25feac1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions homeassistant/components/mqtt/client.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
"""Support for MQTT message handling."""
# pylint: disable=deprecated-typing-alias
# In Python 3.9.0 and 3.9.1 collections.abc.Callable
# can't be used inside typing.Union or typing.Optional
from __future__ import annotations

import asyncio
from collections.abc import Callable, Coroutine, Iterable
from collections.abc import Coroutine, Iterable
from functools import lru_cache, partial, wraps
import inspect
from itertools import groupby
import logging
from operator import attrgetter
import ssl
import time
from typing import TYPE_CHECKING, Any, Union, cast
from typing import TYPE_CHECKING, Any, Callable, Union, cast
import uuid

import attr
Expand Down

0 comments on commit 25feac1

Please sign in to comment.