Open
Description
Currently, the plugin only supports dataclass creation (i.e. generation of dunder methods with correct types, including __init__
). However, some functions in the dataclass
modules have quite broad types in typeshed, for example:
def replace(obj: _T, **changes: Any) -> _T: ...
so that arbitrary arguments can be give for changes
, etc. The plugin should be able to give more precise type for these functions. In particular, asdict
could return a TypedDict
.