-
Notifications
You must be signed in to change notification settings - Fork 282
Closed
Description
Hello, I already wrote on python-ideas group, I frequently am in need to have abstract access to the NamedTuple API, here a very simple exapmple:
from typing import NamedTupleType
def test(
arguments: NamedTupleType
) -> NamedTupleType:
return SomeType(**NamedTupleType._asdict) At the moment I have two hotfix:
Overload the namedtuple factory, but somewhat breaking my IDE or creating a fake namedtuple but both of them are hacks.
If my proposal get accepted I'm willingly to do the coding part :)
Thanks
mitar
Metadata
Metadata
Assignees
Labels
No labels