Closed rwols closed 4 years ago
The following code:
class DottedDict: __slots__ = ('_d') def __init__(self, d: Optional[Dict[str, Any]] = None) -> None: self._d = {} # type: Dict[str, Any] if d is not None: self.update(d)
Produces the following template when press Alt+Q on the __init__ token:
__init__
class DottedDict: __slots__ = ('_d') def __init__(self, d: Optional[Dict[str, Any]] = None) """ Constructs a new instance. :param d: { parameter_description } :type d: { type_description } """ -> None: self._d = {} # type: Dict[str, Any] if d is not None: self.update(d)
It should instead create this template:
class DottedDict: __slots__ = ('_d') def __init__(self, d: Optional[Dict[str, Any]] = None) -> None: """ Constructs a new instance. :param d: { parameter_description } :type d: { type_description } """ self._d = {} # type: Dict[str, Any] if d is not None: self.update(d)
Thanks for reporting,
Fixed in 0.76.2 (just released in both evolution and regular versions)
Thanks!
The following code:
Produces the following template when press Alt+Q on the
__init__
token:It should instead create this template: