pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

Remove return type from __init__ override member completion

Open judej opened this issue 1 year ago • 8 comments

Discussed in https://github.com/microsoft/pylance-release/discussions/2593

Originally posted by savannahostrowski May 10, 2021 If I'm in a typeCheckingMode of "off", I don't want to see a return type for function snippets.

image

judej avatar Jan 18 '24 22:01 judej

we just converted this back to an issue to add it to our roadmap

luabud avatar Jan 18 '24 22:01 luabud

Very happy to see this get resolved!

JacobCallahan avatar Jan 19 '24 21:01 JacobCallahan

Did this ever get resolved? Experiencing similar for __call__. Especially bad when overriding a method from an inherited class. on Pylance v2024.4.1

mattskel avatar Apr 13 '24 13:04 mattskel

Did this ever get resolved?

@mattskel, not yet. Based on up-votes we converted it from an enhancement discussion back into an issue, but we haven't acted on it yet.

debonte avatar Apr 30 '24 18:04 debonte

so, we don't want to add typing for override when typing mode is off? doing that is easy but LS experience will be degraded since we no longer know what arguments/return types are. either perf will degrade (since we now need to infer (calculate) it or can't figure out at all) or completion might not be offered for arguments.

heejaechang avatar Apr 30 '24 18:04 heejaechang

I would like to see these implemented.

mdragoss avatar Jul 11 '24 19:07 mdragoss