You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.
For instance, device names can be handled more elegantly using named tuples. However, as discussed in cython/cython#2552, NamedTuple (or any class requiring type annotation) is not yet supported. I am noting this here to not forget about it.
The text was updated successfully, but these errors were encountered:
For device names specifically, neither'd be wise choice, since both are mutable data types. I can imagine palace is imported multiple times by downstream (which imports the same instance) and one of the downstream accidentally modify the data. That's be messed up.
McSinyx
changed the title
Replace dict by typing.NamedTuple for enum data
Replace module-level dict by immutable data type
Jan 23, 2020
For instance, device names can be handled more elegantly using named tuples. However, as discussed in cython/cython#2552,
NamedTuple
(or any class requiring type annotation) is not yet supported. I am noting this here to not forget about it.The text was updated successfully, but these errors were encountered: