Skip to content

Commit

Permalink
More type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlodek committed Nov 27, 2024
1 parent 4fdf174 commit 2d936ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ophyd_async/epics/core/_p4p.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ophyd_async/epics/core/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2d936ac

Please sign in to comment.