python_stubs

https://stackoverflow.com/questions/24266114/pycharm-what-is-python-stubs

什麼情況下會出現跳轉到python_stubs?

當我們調用的函數是內置函數或僅二進制存在的函數(沒有py文件,只有pyc等)時,pycharm會對某個版本進行硬編碼而生成的僞函數(實際不是調用的這個,只是方便我們做開發)。

 

The python_stubs file is an automatically generated file that contains dummy definitions for built-in functions. It is used by PyCharm to infer the types of the built-in functions in the case that they weren't hardcoded for the given version.

 

https://peps.python.org/pep-0484/#stub-files

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章