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 was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
I noticed PLS has a specialization for typing.NamedTuple, which is, essentially, collections.namedtuple under the hood. Should not be hard to add handling for the later.
I'd be interested on adding a specialization for collections.namedtuple, but I'd like to understand how to add new specializations. Initially, I though it will be as hard as creating a custom CollectionsModuleInfo: BuiltinModule similar to TypingModuleInfo, but then I found also TypingTypeInfo and its Finalize and TypingTypeInfoFinalizer, and a seemingly simple tasks seems convoluted now.
I'd also gladly work on making this exact task simpler in the future.
BTW, here's a commit, that adds a test case for the desired behavior: losttech@0899a19
Activity
MikhailArkhipov commentedon Oct 1, 2018
Yes #15.
lostmsu commentedon Oct 1, 2018
Sorry, obviously a duplicate then.
Still interested in how to work with it.
MikhailArkhipov commentedon Nov 4, 2018
It actually does not need specialization. It needs proper understanding of typeshed definitions through
Type[T]generic. See #339MikhailArkhipov commentedon Feb 8, 2019
Most probably no longer applies after #425