From 2d936aca2775c62a8ef632eaf677571788e6386d Mon Sep 17 00:00:00 2001 From: Jakub Wlodek Date: Wed, 27 Nov 2024 13:32:48 -0500 Subject: [PATCH] More type fixes --- src/ophyd_async/epics/core/_p4p.py | 2 +- src/ophyd_async/epics/core/_util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ophyd_async/epics/core/_p4p.py b/src/ophyd_async/epics/core/_p4p.py index e57dcd0335..879b4e6ca7 100644 --- a/src/ophyd_async/epics/core/_p4p.py +++ b/src/ophyd_async/epics/core/_p4p.py @@ -98,7 +98,7 @@ class PvaLongStringConverter(PvaConverter[str]): def __init__(self): super().__init__(str) - def value(self, value: Any) -> SignalDatatypeT: + def value(self, value: Any) -> Any: # Value here is a null terminated array of ascii codes. # We strip out the null terminator, and convert each code # to the corresponding char, joining into a string diff --git a/src/ophyd_async/epics/core/_util.py b/src/ophyd_async/epics/core/_util.py index 7d886e3fa8..a40d794b45 100644 --- a/src/ophyd_async/epics/core/_util.py +++ b/src/ophyd_async/epics/core/_util.py @@ -16,7 +16,7 @@ def get_pv_basename_and_field(pv: str) -> tuple[str, str | None]: """Simple utility function for extracting base pv name without field""" if "." in pv: - return tuple(pv.split(".", -1)) + return (pv.split(".", -1)[0], pv.split(".", -1)[1]) else: return (pv, None)