microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
910 stars 130 forks source link

Dataclass parameters with init=False #2140

Closed DolajoCZ closed 3 years ago

DolajoCZ commented 3 years ago

Hello, is it possible to hide parameters of python dataclass which are defined as fields with parameter init=False from class description? In attached picture is par_c shown although init=False. It can be misleading.

image

Thank you

jakebailey commented 3 years ago

Consider trying Pylance, which has dataclass support including what you've described here:

image

DolajoCZ commented 3 years ago

Consider trying Pylance, which has dataclass support including what you've described here:

image

Thank you @jakebailey for advice