Skip to content

Commit 56754f5

Browse files
committed
Use compatible syntax for Python < 3.10
1 parent 0f9191b commit 56754f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvi/Connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2121
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222

23-
from typing import Union, Callable
23+
from typing import Union, Callable, Optional
2424
from ctypes import c_uint64 as WPARAM, c_int64 as LPARAM, c_void_p as HANDLE, byref, sizeof
2525
from .include import *
2626
from .Error import PviError
@@ -189,7 +189,7 @@ def findObjectByLinkID(self, linkID : wintypes.DWORD) ->PviObject :
189189
raise KeyError('PviObject not found by LinkID')
190190

191191
@property
192-
def connectionChanged(self) -> Callable | None:
192+
def connectionChanged(self) -> Optional[Callable]:
193193
"""
194194
callback for 'connected to PVI-Manger'
195195

0 commit comments

Comments
 (0)