Prechádzať zdrojové kódy

remove now redundant cast after upgrading mypy from v1.3.0 to v1.4.0

Fabian Peter Hammerle 11 mesiacov pred
rodič
commit
b363739951
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      switchbot_mqtt/_utils.py

+ 1 - 1
switchbot_mqtt/_utils.py

@@ -43,7 +43,7 @@ def _join_mqtt_topic_levels(
     mac_address: str,
     mac_address: str,
 ) -> str:
 ) -> str:
     return topic_prefix + "/".join(
     return topic_prefix + "/".join(
-        mac_address if l == _MQTTTopicPlaceholder.MAC_ADDRESS else typing.cast(str, l)
+        mac_address if l == _MQTTTopicPlaceholder.MAC_ADDRESS else l
         for l in topic_levels
         for l in topic_levels
     )
     )