From 1ee9ea501afb74b7d4a165d5c7e5afa17fcdf75f Mon Sep 17 00:00:00 2001 From: Bob McNamara <7468667+bobmcnamara@users.noreply.github.com> Date: Wed, 29 Jan 2025 10:23:12 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Matthieu Dartiailh --- pyvisa_py/gpib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyvisa_py/gpib.py b/pyvisa_py/gpib.py index e928b74..30d3edb 100644 --- a/pyvisa_py/gpib.py +++ b/pyvisa_py/gpib.py @@ -9,7 +9,7 @@ import ctypes # Used for missing bindings not ideal from bisect import bisect -from typing import Any, Iterator, List, Optional, Tuple, Type, Union +from typing import Any, Iterator, List, Tuple, Type, Union from pyvisa import attributes, constants from pyvisa.constants import ResourceAttribute, StatusCode @@ -36,7 +36,7 @@ def __new__( # type: ignore[misc] resource_manager_session: VISARMSession, resource_name: str, parsed=None, - open_timeout: Optional[int] = None, + open_timeout: int | None = None, ) -> Session: newcls: Type