Skip to content

Commit

Permalink
Remove outdated typing imports
Browse files Browse the repository at this point in the history
Summary: A codemod updated all of the type hints here so that the typing imports are no longer needed

Reviewed By: somasun

Differential Revision: D66384969

fbshipit-source-id: ebbe445507f739f6333d19cdb7a1f76dad91dfd8
  • Loading branch information
Scott8440 authored and facebook-github-bot committed Dec 12, 2024
1 parent cf1405d commit 118c942
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import argparse
import os
from dataclasses import dataclass
from typing import List

import pytest
from dataclasses_json import dataclass_json
Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# pyre-unsafe
import os
from pathlib import Path
from typing import List, Tuple

import pytest
from fboss.platform.bsp_tests.test_runner import Config, FpgaSpec, PLATFORMS
Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/tests/test_gpio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pyre-unsafe
from typing import List, Tuple

import pytest
from fboss.platform.bsp_tests.test_runner import FpgaSpec
Expand Down
3 changes: 1 addition & 2 deletions fboss/platform/bsp_tests/tests/test_i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os
import re
from collections import defaultdict
from typing import Dict, List

import pytest

Expand All @@ -29,7 +28,7 @@ def test_cdev_is_created(platform_fpgas) -> None:


def test_i2c_adapter_names(fpga_with_adapters) -> None:
for fpga, adapter in fpga_with_adapters:
for _, adapter in fpga_with_adapters:
pattern = r"i2c_master(_.+)?"
assert re.search(
pattern, adapter.auxDevice.deviceName
Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/tests/test_xcvr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# pyre-unsafe
import glob
import os
from typing import Dict, Optional

import pytest

Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/utils/cdev_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import ctypes
from dataclasses import dataclass, field
from enum import Enum
from typing import List, Optional

from dataclasses_json import dataclass_json

Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/utils/cdev_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# pyre-unsafe
import fcntl
import os
from typing import Dict, List

from fboss.platform.bsp_tests.utils.cdev_types import (
AuxDevice,
Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/utils/gpio_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# pyre-unsafe
import re
from dataclasses import dataclass
from typing import List, Optional

from fboss.platform.bsp_tests.utils.cmd_utils import run_cmd

Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/utils/i2c_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import subprocess
from collections import namedtuple
from typing import List, Set, Tuple

from fboss.platform.bsp_tests.utils.cdev_types import FpgaSpec, I2CAdapter, I2CDevice
from fboss.platform.bsp_tests.utils.cdev_utils import create_new_device
Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/utils/kmod_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# pyre-unsafe
import shutil
from typing import List

from fboss.platform.bsp_tests.utils.cmd_utils import check_cmd, run_cmd

Expand Down
1 change: 0 additions & 1 deletion fboss/platform/bsp_tests/utils/watchdog_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import glob
import os
import struct
from typing import Set

from ioctl_opt import IOR, IOWR

Expand Down

0 comments on commit 118c942

Please sign in to comment.