On 2017-12-22 12:15, Chris Barker wrote:
Would it be crazy to bring typing.Any into the builtin namespace?
@dataclass:
a: Any
b: Any = 34
c: int = 0
That reads pretty well to me....
> And having Any available in the built in namespace may help in other cases
where
There is already an "any" function in the builtins. It looks fine but not sure
how it will interact with type checkers.
The "dataclass.Data" idea mentioned in a sibling thread is good alternative,
though just wordy enough to make ... a shortcut.
-Mike
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com