From b9c17dcff88eebba233307e130a1fca02185e87d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:26:58 +0000 Subject: [PATCH] gh-actions(deps): Bump the gh-actions-dependencies group with 1 update (#130) * gh-actions(deps): Bump the gh-actions-dependencies group with 1 update Bumps the gh-actions-dependencies group with 1 update: [actions/dependency-review-action](https://github.com/actions/dependency-review-action). Updates `actions/dependency-review-action` from 3 to 4 - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-actions-dependencies ... Signed-off-by: dependabot[bot] * style: Update pyright linting control comments to use the newly added error codes. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nicholas Felt --- .github/workflows/dependency-review.yml | 2 +- .pre-commit-config.yaml | 2 +- examples/miscellaneous/custom_device_driver_support.py | 4 ++-- examples/miscellaneous/disable_command_verification.py | 4 ++-- examples/scopes/tekscope/basic_save_recall.py | 2 +- examples/scopes/tekscope/generate_internal_afg_signal.py | 2 +- examples/scopes/tekscope/get_acquisition_data.py | 2 +- .../tekscope_70k/dpojet/adding_dpojet_measurements.py | 2 +- .../2400/smu_2400_load_script_and_run.py | 2 +- .../source_measure_units/2400/smu_2450_leakage_current.py | 2 +- .../2400/smu_2450_linear_sweep_current.py | 2 +- .../2400/smu_2450_measuring_lowr_devices.py | 2 +- .../2400/smu_2450_rechargeable_battery.py | 2 +- examples/source_measure_units/2400/smu_2450_solar_cell.py | 2 +- examples/source_measure_units/2400/smu_2460_pulse_train.py | 2 +- .../source_measure_units/2400/smu_2460_solar_panel_sweep.py | 2 +- examples/source_measure_units/2400/smu_2461_1kw_pulsing.py | 2 +- .../2400/smu_2461_pulse_sweep_trigger_out.py | 2 +- .../2400/smu_2470_insulation_resistance.py | 2 +- .../source_measure_units/2400/smu_2470_mosfet_leakage.py | 2 +- .../source_measure_units/2600/reading_dynamic_buffers.py | 2 +- .../source_measure_units/2600/smu_2600_ac_waveform_sweep.py | 2 +- examples/source_measure_units/2600/smu_2600_bjt_slow.py | 2 +- .../source_measure_units/2600/smu_2600_diode_test_fast.py | 2 +- .../source_measure_units/2600/smu_2651_fast_adc_usage.py | 2 +- examples/source_measure_units/2600/smu_2657_dioderl_swp.py | 2 +- .../2600/smu_2657a_capacitor_leakage.py | 2 +- .../source_measure_units/2600/smu_2657a_mosfet_bvdss.py | 4 ++-- examples/source_measure_units/2600/smu_2657a_mosfet_idss.py | 4 ++-- src/tm_devices/helpers/read_only_cached_property.py | 6 +++--- 30 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 4f8ec0b7..dab66770 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/dependency-review-action@v3 + - uses: actions/dependency-review-action@v4 with: fail-on-severity: low comment-summary-in-pr: on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4083de28..0379c817 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -123,7 +123,7 @@ repos: always_run: true args: [., --min=10] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.13 + rev: v0.1.14 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 7ac9ad55..77c761fe 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -23,9 +23,9 @@ def custom_method(self, value: str) -> None: with DeviceManager(external_device_drivers=CUSTOM_DEVICE_DRIVERS) as device_manager: # Add a scope that is currently supported by the package - mso5: MSO5 = device_manager.add_scope("192.168.0.1") # pyright: ignore[reportGeneralTypeIssues] + mso5: MSO5 = device_manager.add_scope("192.168.0.1") # pyright: ignore[reportAssignmentType] # Add the custom scope - custom_scope: CustomScope = device_manager.add_scope("192.168.0.2") # pyright: ignore[reportGeneralTypeIssues] + custom_scope: CustomScope = device_manager.add_scope("192.168.0.2") # pyright: ignore[reportAssignmentType] # Custom drivers inherit all methods custom_scope.expect_esr(0) # check for no errors diff --git a/examples/miscellaneous/disable_command_verification.py b/examples/miscellaneous/disable_command_verification.py index c4e5e2fa..9151eae5 100644 --- a/examples/miscellaneous/disable_command_verification.py +++ b/examples/miscellaneous/disable_command_verification.py @@ -4,8 +4,8 @@ with DeviceManager(verbose=True) as dm: # Add some devices - scope: MSO5 = dm.add_scope("192.168.0.1") # pyright: ignore[reportGeneralTypeIssues] - smu: SMU2601B = dm.add_smu("192.168.0.2") # pyright: ignore[reportGeneralTypeIssues] + scope: MSO5 = dm.add_scope("192.168.0.1") # pyright: ignore[reportAssignmentType] + smu: SMU2601B = dm.add_smu("192.168.0.2") # pyright: ignore[reportAssignmentType] # # Set some values and use verification to verify they were set properly. diff --git a/examples/scopes/tekscope/basic_save_recall.py b/examples/scopes/tekscope/basic_save_recall.py index ed41aca3..d2bef45b 100644 --- a/examples/scopes/tekscope/basic_save_recall.py +++ b/examples/scopes/tekscope/basic_save_recall.py @@ -4,7 +4,7 @@ with DeviceManager(verbose=True) as dm: # Get a scope - scope: MSO6B = dm.add_scope("192.168.1.177") # pyright: ignore[reportGeneralTypeIssues] + scope: MSO6B = dm.add_scope("192.168.1.177") # pyright: ignore[reportAssignmentType] # Send some commands scope.add_new_math("MATH1", "CH1") # add MATH1 to CH1 diff --git a/examples/scopes/tekscope/generate_internal_afg_signal.py b/examples/scopes/tekscope/generate_internal_afg_signal.py index 0716baff..f9658fd1 100644 --- a/examples/scopes/tekscope/generate_internal_afg_signal.py +++ b/examples/scopes/tekscope/generate_internal_afg_signal.py @@ -4,7 +4,7 @@ with DeviceManager(verbose=True) as dm: # Create a connection to the scope and indicate that it is a MSO5 scope for type hinting - scope: MSO5 = dm.add_scope("192.168.1.102") # pyright: ignore[reportGeneralTypeIssues] + scope: MSO5 = dm.add_scope("192.168.1.102") # pyright: ignore[reportAssignmentType] # Generate the signal scope.commands.afg.frequency.write(10e6) # set frequency diff --git a/examples/scopes/tekscope/get_acquisition_data.py b/examples/scopes/tekscope/get_acquisition_data.py index e91ce6d5..9d6d8cb5 100644 --- a/examples/scopes/tekscope/get_acquisition_data.py +++ b/examples/scopes/tekscope/get_acquisition_data.py @@ -12,7 +12,7 @@ device_manager.visa_library = PYVISA_PY_BACKEND # Creating Scope driver object by providing ip address. - scope: MSO6B = device_manager.add_scope("127.0.0.1") # pyright: ignore[reportGeneralTypeIssues] + scope: MSO6B = device_manager.add_scope("127.0.0.1") # pyright: ignore[reportAssignmentType] # Turn on channel 1 scope.commands.display.waveview1.ch[1].state.write("ON") diff --git a/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py b/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py index 299be611..265ea7b4 100644 --- a/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py +++ b/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py @@ -12,7 +12,7 @@ device_manager.visa_library = PYVISA_PY_BACKEND # Creating one 7K/70K/SX Scope driver object by providing ip address. - scope: MSO70KDX = device_manager.add_scope("127.0.0.1") # pyright: ignore[reportGeneralTypeIssues] + scope: MSO70KDX = device_manager.add_scope("127.0.0.1") # pyright: ignore[reportAssignmentType] # Starting DPOJET scope.commands.dpojet.activate.write() diff --git a/examples/source_measure_units/2400/smu_2400_load_script_and_run.py b/examples/source_measure_units/2400/smu_2400_load_script_and_run.py index 1f5ab720..92642d79 100644 --- a/examples/source_measure_units/2400/smu_2400_load_script_and_run.py +++ b/examples/source_measure_units/2400/smu_2400_load_script_and_run.py @@ -20,7 +20,7 @@ # Main code starts here with instantiation of the device manager and the SMU instrument connection. devmgr = DeviceManager(verbose=True) -smu2400: SMU2450 = devmgr.add_smu("192.168.0.1", alias="my2450") # pyright: ignore[reportGeneralTypeIssues] +smu2400: SMU2450 = devmgr.add_smu("192.168.0.1", alias="my2450") # pyright: ignore[reportAssignmentType] smu2400.enable_verification = False # Capture the path to the script file and load it to working memory. diff --git a/examples/source_measure_units/2400/smu_2450_leakage_current.py b/examples/source_measure_units/2400/smu_2450_leakage_current.py index 9a1a1ec7..1f167773 100644 --- a/examples/source_measure_units/2400/smu_2450_leakage_current.py +++ b/examples/source_measure_units/2400/smu_2450_leakage_current.py @@ -13,7 +13,7 @@ from tm_devices.drivers import SMU2450 with DeviceManager(verbose=False) as device_manager: - inst: SMU2450 = device_manager.add_smu("192.168.1.4", alias="my2450") # pyright: ignore[reportGeneralTypeIssues] + inst: SMU2450 = device_manager.add_smu("192.168.1.4", alias="my2450") # pyright: ignore[reportAssignmentType] # Reset the instrument, which also clears the buffer. inst.commands.reset() diff --git a/examples/source_measure_units/2400/smu_2450_linear_sweep_current.py b/examples/source_measure_units/2400/smu_2450_linear_sweep_current.py index e7785d0f..0666f948 100644 --- a/examples/source_measure_units/2400/smu_2450_linear_sweep_current.py +++ b/examples/source_measure_units/2400/smu_2450_linear_sweep_current.py @@ -16,7 +16,7 @@ from tm_devices.drivers import SMU2450 with DeviceManager() as device_manager: - smu2450: SMU2450 = device_manager.add_smu( # pyright: ignore[reportGeneralTypeIssues] + smu2450: SMU2450 = device_manager.add_smu( # pyright: ignore[reportAssignmentType] "USB0::0x05E6::0x2450::01419969::INSTR", alias="my2450" ) diff --git a/examples/source_measure_units/2400/smu_2450_measuring_lowr_devices.py b/examples/source_measure_units/2400/smu_2450_measuring_lowr_devices.py index 778f9785..690d3bfb 100644 --- a/examples/source_measure_units/2400/smu_2450_measuring_lowr_devices.py +++ b/examples/source_measure_units/2400/smu_2450_measuring_lowr_devices.py @@ -21,7 +21,7 @@ with DeviceManager() as device_manager: print(device_manager.get_available_devices()) - inst: SMU2450 = device_manager.add_smu("192.168.4.74", alias="my2450") # pyright: ignore[reportGeneralTypeIssues] + inst: SMU2450 = device_manager.add_smu("192.168.4.74", alias="my2450") # pyright: ignore[reportAssignmentType] # Configure the Simple Loop trigger model template to make 100 readings. inst.commands.trigger.model.load_simple_loop(100) diff --git a/examples/source_measure_units/2400/smu_2450_rechargeable_battery.py b/examples/source_measure_units/2400/smu_2450_rechargeable_battery.py index 36715a04..103eb168 100644 --- a/examples/source_measure_units/2400/smu_2450_rechargeable_battery.py +++ b/examples/source_measure_units/2400/smu_2450_rechargeable_battery.py @@ -19,7 +19,7 @@ with DeviceManager() as device_manager: print(device_manager.get_available_devices()) - inst: SMU2450 = device_manager.add_smu("192.168.4.74", alias="my2450") # pyright: ignore[reportGeneralTypeIssues] + inst: SMU2450 = device_manager.add_smu("192.168.4.74", alias="my2450") # pyright: ignore[reportAssignmentType] # Clear the buffer. inst.commands.buffer_var["defbuffer1"].clear() diff --git a/examples/source_measure_units/2400/smu_2450_solar_cell.py b/examples/source_measure_units/2400/smu_2450_solar_cell.py index 73bb247e..f533ce6e 100644 --- a/examples/source_measure_units/2400/smu_2450_solar_cell.py +++ b/examples/source_measure_units/2400/smu_2450_solar_cell.py @@ -15,7 +15,7 @@ with DeviceManager() as device_manager: print(device_manager.get_available_devices()) - inst: SMU2450 = device_manager.add_smu("192.168.4.74", alias="my2450") # pyright: ignore[reportGeneralTypeIssues] + inst: SMU2450 = device_manager.add_smu("192.168.4.74", alias="my2450") # pyright: ignore[reportAssignmentType] # Define the number of points in the sweep. POINTS = 56 diff --git a/examples/source_measure_units/2400/smu_2460_pulse_train.py b/examples/source_measure_units/2400/smu_2460_pulse_train.py index f218d6e1..29e3613f 100644 --- a/examples/source_measure_units/2400/smu_2460_pulse_train.py +++ b/examples/source_measure_units/2400/smu_2460_pulse_train.py @@ -24,7 +24,7 @@ LIMIT = 7 with DeviceManager(verbose=True) as dm: - inst: SMU2460 = dm.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + inst: SMU2460 = dm.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] # Set to current source and set up source config list inst.commands.smu.source.configlist.create("OutputList") diff --git a/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py b/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py index deb4471a..a66f9229 100644 --- a/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py +++ b/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py @@ -25,7 +25,7 @@ S_DELAY = 0.05 with DeviceManager(verbose=False) as dm: - inst: SMU2460 = dm.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + inst: SMU2460 = dm.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] # Reset the Model 2460 and clear its buffer. inst.commands.reset() diff --git a/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py b/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py index 5110bb39..b0c672b0 100644 --- a/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py +++ b/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py @@ -10,7 +10,7 @@ with DeviceManager() as device_manager: print(device_manager.get_available_devices()) - smu2461: SMU2461 = device_manager.add_smu("TCPIP::0.0.0.0::inst0::INSTR", alias="my2461") # pyright: ignore[reportGeneralTypeIssues] + smu2461: SMU2461 = device_manager.add_smu("TCPIP::0.0.0.0::inst0::INSTR", alias="my2461") # pyright: ignore[reportAssignmentType] # Reset the instrument smu2461.commands.reset() diff --git a/examples/source_measure_units/2400/smu_2461_pulse_sweep_trigger_out.py b/examples/source_measure_units/2400/smu_2461_pulse_sweep_trigger_out.py index 156dc5f7..37933707 100644 --- a/examples/source_measure_units/2400/smu_2461_pulse_sweep_trigger_out.py +++ b/examples/source_measure_units/2400/smu_2461_pulse_sweep_trigger_out.py @@ -88,7 +88,7 @@ def pulse_delay_calc(pulse_width: str) -> float: with DeviceManager() as device_manager: print(device_manager.get_available_devices()) - smu2461: SMU2461 = device_manager.add_smu( # pyright: ignore[reportGeneralTypeIssues] + smu2461: SMU2461 = device_manager.add_smu( # pyright: ignore[reportAssignmentType] "TCPIP::0.0.0.0::inst0::INSTR", alias="my2461" ) # 192.168.0.2 diff --git a/examples/source_measure_units/2400/smu_2470_insulation_resistance.py b/examples/source_measure_units/2400/smu_2470_insulation_resistance.py index e4beaf2a..5515f64e 100644 --- a/examples/source_measure_units/2400/smu_2470_insulation_resistance.py +++ b/examples/source_measure_units/2400/smu_2470_insulation_resistance.py @@ -9,7 +9,7 @@ from tm_devices.drivers import SMU2470 with DeviceManager(verbose=False) as device_manager: - smu2470: SMU2470 = device_manager.add_smu( # pyright: ignore[reportGeneralTypeIssues] + smu2470: SMU2470 = device_manager.add_smu( # pyright: ignore[reportAssignmentType] "TCPIP::0.0.0.0::inst0::INSTR", alias="my2470" ) # 192.168.0.2 diff --git a/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py b/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py index 6a3422cf..a1fa500b 100644 --- a/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py +++ b/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py @@ -10,7 +10,7 @@ from tm_devices.drivers import SMU2470 with DeviceManager(verbose=False) as device_manager: - smu2470: SMU2470 = device_manager.add_smu("TCPIP::0.0.0.0::inst0::INSTR", alias="my2470") # pyright: ignore[reportGeneralTypeIssues] + smu2470: SMU2470 = device_manager.add_smu("TCPIP::0.0.0.0::inst0::INSTR", alias="my2470") # pyright: ignore[reportAssignmentType] # Reset the instrument, which also clears the buffer. smu2470.commands.reset() diff --git a/examples/source_measure_units/2600/reading_dynamic_buffers.py b/examples/source_measure_units/2600/reading_dynamic_buffers.py index ecf5c8c6..6d0f35e5 100644 --- a/examples/source_measure_units/2600/reading_dynamic_buffers.py +++ b/examples/source_measure_units/2600/reading_dynamic_buffers.py @@ -4,7 +4,7 @@ with DeviceManager() as device_manager: # Create a SMU and type hint it as a 2601B - smu: SMU2601B = device_manager.add_smu("192.168.0.1") # pyright: ignore[reportGeneralTypeIssues] + smu: SMU2601B = device_manager.add_smu("192.168.0.1") # pyright: ignore[reportAssignmentType] # Create a buffer BUFFER_NAME = "mybuffer" diff --git a/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py b/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py index 420e244d..037514ed 100644 --- a/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py +++ b/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py @@ -108,5 +108,5 @@ def waveform_sweep(inst: SMU2602B) -> None: # RUN TEST with DeviceManager(verbose=False) as DM: - inst_driver: SMU2602B = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + inst_driver: SMU2602B = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] waveform_sweep(inst_driver) diff --git a/examples/source_measure_units/2600/smu_2600_bjt_slow.py b/examples/source_measure_units/2600/smu_2600_bjt_slow.py index a55095ae..31f1533d 100644 --- a/examples/source_measure_units/2600/smu_2600_bjt_slow.py +++ b/examples/source_measure_units/2600/smu_2600_bjt_slow.py @@ -307,6 +307,6 @@ def display_results(sep: str = "\t") -> None: # Connect to instrument and begin testing. with DeviceManager(verbose=False) as DM: - smu_driver: SMU2602B = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + smu_driver: SMU2602B = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] bjt_slow(smu_driver) diff --git a/examples/source_measure_units/2600/smu_2600_diode_test_fast.py b/examples/source_measure_units/2600/smu_2600_diode_test_fast.py index dca13cc6..c475b99d 100644 --- a/examples/source_measure_units/2600/smu_2600_diode_test_fast.py +++ b/examples/source_measure_units/2600/smu_2600_diode_test_fast.py @@ -417,7 +417,7 @@ def display_bins_status() -> None: # Connect to instrument and begin testing with DeviceManager(verbose=False) as DM: - smu_driver: SMU2602B = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + smu_driver: SMU2602B = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] # Save settings in temporary variables so they can be restored after completion. s_func = smu_driver.commands.smu["a"].source.func diff --git a/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py b/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py index 9746ebdc..7cdd7052 100644 --- a/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py +++ b/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py @@ -217,7 +217,7 @@ def capture_pulse_v(inst: SMU2651A) -> None: # RUN TEST with DeviceManager() as DM: - inst_driver: SMU2651A = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + inst_driver: SMU2651A = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] capture_pulse_i(inst_driver) capture_pulse_v(inst_driver) diff --git a/examples/source_measure_units/2600/smu_2657_dioderl_swp.py b/examples/source_measure_units/2600/smu_2657_dioderl_swp.py index 9d3a49e4..2140d1f8 100644 --- a/examples/source_measure_units/2600/smu_2657_dioderl_swp.py +++ b/examples/source_measure_units/2600/smu_2657_dioderl_swp.py @@ -30,7 +30,7 @@ def dioderl_swp( # noqa: PLR0915 source_delay: The delay between the start of source and the source complete event. """ with DeviceManager() as dev_man: - smu2657a: SMU2657A = dev_man.add_smu( # pyright: ignore[reportGeneralTypeIssues] + smu2657a: SMU2657A = dev_man.add_smu( # pyright: ignore[reportAssignmentType] address="TCPIP::0.0.0.0::inst0::INSTR", alias="my2657a" ) # 192.168.0.2 # Reset and initialize instrument diff --git a/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py b/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py index 5d97df08..218aa08c 100644 --- a/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py +++ b/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py @@ -92,5 +92,5 @@ def capacitor_leakage(inst: SMU2657A) -> None: with DeviceManager() as DM: - smu_driver: SMU2657A = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportGeneralTypeIssues] + smu_driver: SMU2657A = DM.add_smu(RESOURCE_ID) # pyright: ignore[reportAssignmentType] capacitor_leakage(smu_driver) diff --git a/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py b/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py index 5e9c7684..a0283aa5 100644 --- a/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py +++ b/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py @@ -33,8 +33,8 @@ with DeviceManager(verbose=False) as DM: # Replace the SMU2636B class with the instrument you are using for this test. - smu2657a: SMU2657A = DM.add_smu(SMU1_ID) # pyright: ignore[reportGeneralTypeIssues] - smu26xx: SMU2636B = DM.add_smu(SMU2_ID) # pyright: ignore[reportGeneralTypeIssues] + smu2657a: SMU2657A = DM.add_smu(SMU1_ID) # pyright: ignore[reportAssignmentType] + smu26xx: SMU2636B = DM.add_smu(SMU2_ID) # pyright: ignore[reportAssignmentType] smua1 = smu2657a.commands.smu["a"] smua2 = smu26xx.commands.smu["a"] diff --git a/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py b/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py index ea88ed9f..40064a7e 100644 --- a/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py +++ b/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py @@ -40,8 +40,8 @@ with DeviceManager() as DM: # Replace the SMU2636B class with the instrument you are using for this test. - smu2657a: SMU2657A = DM.add_smu(SMU1_ID) # pyright: ignore[reportGeneralTypeIssues] - smu26xx: SMU2636B = DM.add_smu(SMU2_ID) # pyright: ignore[reportGeneralTypeIssues] + smu2657a: SMU2657A = DM.add_smu(SMU1_ID) # pyright: ignore[reportAssignmentType] + smu26xx: SMU2636B = DM.add_smu(SMU2_ID) # pyright: ignore[reportAssignmentType] smua1 = smu2657a.commands.smu["a"] smua2 = smu26xx.commands.smu["a"] diff --git a/src/tm_devices/helpers/read_only_cached_property.py b/src/tm_devices/helpers/read_only_cached_property.py index 3541c5a4..4f11103c 100644 --- a/src/tm_devices/helpers/read_only_cached_property.py +++ b/src/tm_devices/helpers/read_only_cached_property.py @@ -9,7 +9,7 @@ # TODO: Remove the pragmas and exception block when support for Python 3.8 is dropped try: # pragma: py-lt-39 # pylint: disable=unsubscriptable-object,useless-suppression - class ReadOnlyCachedProperty(cached_property[_T]): # pyright: ignore[reportGeneralTypeIssues] + class ReadOnlyCachedProperty(cached_property[_T]): # pyright: ignore[reportRedeclaration] """An implementation of cached_property that is read-only. Examples: @@ -35,7 +35,7 @@ def __delete__(self, instance: object) -> None: # Delete the attribute from the cache, ignoring KeyErrors since that just means the # attribute already doesn't exist and therefore doesn't need to be deleted. with contextlib.suppress(KeyError): - del cache[self.attrname] # pyright: ignore[reportGeneralTypeIssues] + del cache[self.attrname] # pyright: ignore[reportArgumentType] except TypeError: # pragma: py-gte-39 # pylint: disable=unsubscriptable-object,useless-suppression @@ -65,4 +65,4 @@ def __delete__(self, instance: object) -> None: # Delete the attribute from the cache, ignoring KeyErrors since that just means the # attribute already doesn't exist and therefore doesn't need to be deleted. with contextlib.suppress(KeyError): - del cache[self.attrname] # pyright: ignore[reportGeneralTypeIssues] + del cache[self.attrname] # pyright: ignore[reportArgumentType]