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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ericvsmith'closed_at=<Date2018-01-06.21:14:50.072>created_at=<Date2017-12-11.19:47:31.276>labels= ['3.7', 'type-bug', 'library']
title='Allow dataclasses.make_dataclass() to omit type information'updated_at=<Date2018-01-06.21:14:50.071>user='https://github.com/ericvsmith'
The make_dataclass() factory function in the dataclasses module currently requires type declarations. It would be nice if the type declarations were optional.
Point=namedtuple('Point', ['x', 'y', 'z']) # underlying store is a tuplePoint=make_dataclass('Point', ['x', 'y', 'z']) # underlying store is an instance dict
I'm going to use "typing.Any" (as a string) if the type information is omitted in the call to make_dataclass(). That way I don't need to import typing.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: