Revision history [back]
Support for 3.7 @dataclasses?
Python introduced a new decorator "@dataclasses" in 3.7 https://www.python.org/dev/peps/pep-0557/ Any chance in the future you'll support code completion for these? Currently Wing doesn't appear to recognize that valid attributes exist, and that when initializing a new object code completion does not indicate that parameters are required.
from dataclasses import dataclass
@dataclass
class Car:
make: str
model: str
year: int
car = Car("Datsun", "B210", 1970 )
print (car.make)
Thanks - Ed
Support for 3.7 @dataclasses?
Python introduced a new decorator "@dataclasses" in 3.7 https://www.python.org/dev/peps/pep-0557/ Any chance in the future you'll support code completion for these? Currently Wing doesn't appear to recognize that valid attributes exist, and that when initializing a new object code completion does not indicate that parameters are required.
from dataclasses import dataclass
@dataclass
class Car:
make: str
model: str
year: int
car = Car("Datsun", "B210", 1970 )
print (car.make)
Thanks - Ed