Skip to content
Snippets Groups Projects

Added pyjapc._types.Enum to represent a returned Enum datatype.

Closed Philip Elson requested to merge pelson/pyjapc:enum_rich_return into master
1 unresolved thread

@isinkare - could you take a look at this please? This is a new feature and would be part of a 2.1.0 release.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
pyjapc/_types.py 0 → 100644
16 return self
17
18 @property
19 def value(self):
20 return self[0]
21
22 @property
23 def name(self):
24 return self[1]
25
26 @property
27 def meaning(self) -> str:
28 return self._extra[0]
29
30 @property
31 def editable(self) -> bool:
  • Philip Elson added 1 commit

    added 1 commit

    • ff01be09 - Refined the implementation to expose a normal namedtuple.

    Compare with previous version

  • So this represents a fair amount of complexity which would be better handled by an update to the PyJAPC API as part of https://issues.cern.ch/browse/ACCPY-683. For that reason, I'm going to reject/close this MR.

  • closed

  • Please register or sign in to reply
    Loading