Skip to content

Commit 417fbe8

Browse files
authored
Merge pull request #78 from chennes/cleanupUnusedImports
Remove unused imports
2 parents 35e45c1 + edf3c01 commit 417fbe8

24 files changed

+36
-45
lines changed

AddonManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
from addonmanager_connection_checker import ConnectionCheckerGUI
6464
from addonmanager_devmode_metadata_checker import MetadataValidators
6565

66-
from addonmanager_metadata import Metadata, MetadataReader
66+
from addonmanager_metadata import MetadataReader
6767

6868
import NetworkManager
6969

AddonManagerTest/app/mocks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
# pylint: disable=too-few-public-methods,too-many-instance-attributes,missing-function-docstring
2727

2828
import os
29-
from typing import Union, List
30-
import xml.etree.ElementTree as ElemTree
29+
from typing import List
3130

3231

3332
class GitFailed(RuntimeError):

AddonManagerTest/app/test_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
# * *
2222
# ***************************************************************************
2323
import datetime
24-
import sys
2524
import unittest
2625
from datetime import date
2726
from unittest import TestCase

AddonManagerTest/app/test_installer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
import shutil
3030
import tempfile
3131
from zipfile import ZipFile
32-
import sys
3332

3433
from addonmanager_installer import InstallationMethod, AddonInstaller, MacroInstaller
35-
from addonmanager_git import GitManager, initialize_git
34+
from addonmanager_git import initialize_git
3635
from addonmanager_metadata import MetadataReader
3736
from Addon import Addon
3837
from AddonManagerTest.app.mocks import MockAddon, MockMacro

AddonManagerTest/app/test_macro.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# ***************************************************************************
2323

2424
import os
25-
import sys
2625
import tempfile
2726
from typing import Dict
2827
import unittest

AddonManagerTest/app/test_macro_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
import io
2727
import os
28-
import sys
2928
import unittest
3029

3130
from addonmanager_macro_parser import MacroParser

AddonManagerTest/app/test_utilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import unittest
2626
from unittest.mock import MagicMock, patch, mock_open
2727
import os
28-
import sys
2928
import subprocess
3029

3130
try:

AddonManagerTest/gui/test_installer_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import os
2525
import tempfile
2626
import unittest
27-
from unittest.mock import MagicMock, Mock, patch
27+
from unittest.mock import Mock, patch
2828

2929
try:
3030
from PySide import QtCore, QtWidgets

AddonManagerTest/gui/test_toolbar_adapter.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
1-
import sys
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
# ***************************************************************************
3+
# * *
4+
# * Copyright (c) 2022 FreeCAD Project Association *
5+
# * *
6+
# * This file is part of FreeCAD. *
7+
# * *
8+
# * FreeCAD is free software: you can redistribute it and/or modify it *
9+
# * under the terms of the GNU Lesser General Public License as *
10+
# * published by the Free Software Foundation, either version 2.1 of the *
11+
# * License, or (at your option) any later version. *
12+
# * *
13+
# * FreeCAD is distributed in the hope that it will be useful, but *
14+
# * WITHOUT ANY WARRANTY; without even the implied warranty of *
15+
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16+
# * Lesser General Public License for more details. *
17+
# * *
18+
# * You should have received a copy of the GNU Lesser General Public *
19+
# * License along with FreeCAD. If not, see *
20+
# * <https://www.gnu.org/licenses/>. *
21+
# * *
22+
# ***************************************************************************
23+
224
import unittest
325
from unittest.mock import MagicMock, Mock, patch
426

AddonManagerTest/gui/test_widget_readme_browser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424

2525
import unittest
26-
from unittest.mock import patch
2726

2827
from PySideWrapper import QtWidgets
2928

0 commit comments

Comments
 (0)