Skip to content

Commit

Permalink
kpd: remove unneeded imports
Browse files Browse the repository at this point in the history
Summary: SSIA

Reviewed By: danielocfb

Differential Revision: D64416676

fbshipit-source-id: a2c6159119d55386ef99f38ea03ead2b42f980db
  • Loading branch information
Dave Jones authored and facebook-github-bot committed Oct 16, 2024
1 parent cac6673 commit 827c607
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion kernel_patches_daemon/branch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from enum import Enum
from pathlib import Path
from subprocess import PIPE
from typing import Any, Dict, Final, IO, List, Optional, Tuple
from typing import Any, Final, IO

import dateutil.parser
import git
Expand Down
1 change: 0 additions & 1 deletion kernel_patches_daemon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import os
import re
from dataclasses import dataclass
from typing import Dict, List, Optional, Set


logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion kernel_patches_daemon/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import signal
import threading
from collections.abc import Callable
from typing import Dict, Final, Optional
from typing import Final

from kernel_patches_daemon.config import KPDConfig
from kernel_patches_daemon.github_sync import GithubSync
Expand Down
1 change: 0 additions & 1 deletion kernel_patches_daemon/github_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import os
from datetime import timedelta
from enum import Enum
from typing import Optional
from urllib.parse import urlparse

from github import Auth, Github, GithubException, GithubIntegration
Expand Down
2 changes: 1 addition & 1 deletion kernel_patches_daemon/github_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import re
from abc import ABC, abstractmethod
from collections.abc import Sequence
from typing import Final, List, Optional
from typing import Final

import aiohttp
from github.WorkflowJob import WorkflowJob
Expand Down
2 changes: 1 addition & 1 deletion kernel_patches_daemon/github_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import logging
import time
from collections.abc import Sequence
from typing import Dict, Final, List, Optional
from typing import Final

from github import Auth
from github.PullRequest import PullRequest
Expand Down
2 changes: 1 addition & 1 deletion kernel_patches_daemon/patchwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from collections.abc import Sequence
from functools import update_wrapper
from types import SimpleNamespace
from typing import Any, AnyStr, Dict, Final, List, Optional, Set, Tuple
from typing import Any, AnyStr, Final, Optional
from urllib.parse import urljoin

import aiohttp
Expand Down
1 change: 0 additions & 1 deletion kernel_patches_daemon/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import logging
import time
from collections.abc import Iterable
from typing import Dict, Optional, Set, Union

from opentelemetry import metrics
from opentelemetry.util.types import Attributes
Expand Down
1 change: 0 additions & 1 deletion kernel_patches_daemon/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from collections.abc import Iterable
from enum import Enum
from typing import Optional


class Status(Enum):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_github_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import datetime
import unittest
from dataclasses import dataclass
from typing import Any, List, Optional
from typing import Any
from unittest.mock import MagicMock, patch

import freezegun
Expand Down
2 changes: 1 addition & 1 deletion tests/test_github_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import copy
import unittest
from dataclasses import dataclass
from typing import Any, Dict, Optional
from typing import Any
from unittest.mock import AsyncMock, MagicMock, patch

from kernel_patches_daemon.branch_worker import NewPRWithNoChangeException
Expand Down
2 changes: 1 addition & 1 deletion tests/test_patchwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import re
import unittest
from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Set, Union
from typing import Any

from aioresponses import aioresponses

Expand Down

0 comments on commit 827c607

Please sign in to comment.