Eva Lott

Results 16 comments of Eva Lott

I think this PEP relates to why we have to define the typevar as contravariant https://peps.python.org/pep-0544/#overriding-inferred-variance-of-protocol-classes ## Test The following: ``` python T = TypeVar('T') class SomeClass(Protocol[T]): def some_func_1(self) ->...

@danielballan Are we okay to merge this?

I'm also struggling to get `NTEnuma().wrap # No extra=` to work with any input, either ``` python wrap(some_index, choices=["A", "B"]) ``` or ``` python wrap({"choices": ["A", "B"], "index": some_index}) ```

Yes, looks like it fixes the enum part.

> I was facing a similar issue where I was trying to initialise an NTTable with additional metadata (see PR https://github.com/epics-base/p4p/pull/185). Running pv.current().raw.get(...) on an NTTable PV throws an AttributeError...

Was about to submit this myself.