First time here? Check out the FAQ!

Ed W's profile - activity

2022-01-25 11:24:08 -0500 received badge Famous Question (source)
2022-01-25 11:24:08 -0500 received badge Notable Question (source)
2019-04-26 19:08:50 -0500 received badge Popular Question (source)
2019-04-16 09:35:12 -0500 marked best answer 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

2019-04-16 09:35:12 -0500 received badge Scholar ( source )
2019-04-16 09:35:11 -0500 received badge Supporter ( source )
2019-04-13 07:34:09 -0500 received badge Student (source)
2019-04-13 07:09:46 -0500 asked a question Support for 3.7 @dataclasses?

Support for 3.7 @dataclasses? Python introduced a new decorator "@dataclasses" in 3.7 https://www.python.org/dev/peps/pe