zhengruifeng opened a new pull request, #41272:
URL: https://github.com/apache/spark/pull/41272

   ### What changes were proposed in this pull request?
   move unsupported functions to `__getattr__`, except `getActiveSession` (this 
method doesn't work for `classmethod`)
   
   ### Why are the changes needed?
   Hide unsupported functions from auto-completion
   
   before:
   <img width="1464" alt="image" 
src="https://github.com/apache/spark/assets/7322292/6a3efc83-99ed-4b73-b681-13640b3de7a0";>
   
   
   after:
   <img width="1311" alt="image" 
src="https://github.com/apache/spark/assets/7322292/79366a32-718b-4208-ae1f-3e749971d6d2";>
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   yes
   
   
   ### How was this patch tested?
   manually check in `ipython`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to