mirror of
https://github.com/beetbox/beets.git
synced 2026-03-28 00:06:51 +01:00
Move some imports into type-checking blocks
This commit is contained in:
parent
3717c296c7
commit
c06ec269a2
1 changed files with 9 additions and 2 deletions
|
|
@ -1,19 +1,26 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import optparse
|
||||
import shutil
|
||||
from collections.abc import Generator
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
from mediafile import MediaFile
|
||||
|
||||
from beets import ui
|
||||
from beets.library import Item, Library
|
||||
from beets.library import Item
|
||||
from beets.library.exceptions import WriteError
|
||||
from beets.test import _common
|
||||
from beets.test.helper import TestHelper, capture_log
|
||||
from beetsplug.replace import ReplacePlugin
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Generator
|
||||
|
||||
from beets.library import Library
|
||||
|
||||
replace = ReplacePlugin()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue