Removing unused imports

This commit is contained in:
Roman 2024-11-11 02:13:42 +09:00
parent 0a34960764
commit 8c088079cf
3 changed files with 5 additions and 8 deletions

View File

@ -2,11 +2,11 @@
import subprocess
import time
from pathlib import Path
from waypaper.config import Config
from waypaper.common import get_monitor_names
from waypaper.translations import Chinese, English, French, German, Polish, Russian, Belarusian
from pathlib import Path
import re
def change_wallpaper(image_path: Path, cf: Config, monitor: str, txt: Chinese|English|French|German|Polish|Russian|Belarusian):
"""Run system commands to change the wallpaper depending on the backend"""

View File

@ -1,17 +1,14 @@
"""Module with some of the common functions, like file operations"""
import os
import re
import random
import shutil
import subprocess
import json
from screeninfo import get_monitors
from pathlib import Path
from typing import List
from screeninfo import get_monitors
from waypaper.options import IMAGE_EXTENSIONS, BACKEND_OPTIONS
from typing import List
def has_image_extension(file_path: str, backend: str) -> bool:

View File

@ -1,8 +1,8 @@
"""Module responsible for reading and saving the configuration file"""
import configparser
from argparse import Namespace
import pathlib
from argparse import Namespace
from typing import List
from platformdirs import user_config_path, user_pictures_path, user_cache_path, user_state_path