Fix cyclic import in Chromecast Provider (#2296)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Mon, 4 Aug 2025 14:45:30 +0000 (16:45 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Aug 2025 14:45:30 +0000 (16:45 +0200)
commit306aff3dc2038210e309b9849f6ee5b343dfe962
tree0401e65ca8e17c48156ca5168ca08d729b0a9976
parent0ebb15678c7bf2c3bb01c0b59766db513805500b
Fix cyclic import in Chromecast Provider (#2296)

#2249 introduced a cyclic import resulting in an `ImportError: cannot import name 'ChromecastProvider' from partially initialized module` on launch.

There are still many `Cyclic detected in import chain` errors reported by pyright, but at least they are not causing runtime issues due to being in `TYPE_CHECKING` blocks.
music_assistant/providers/chromecast/player.py