Bokeh causing high CPU load with Pycharm inspections

With the current versions of Bokeh 3.7/3.8 and Pycharm 2024.3.5 there seems to be a big performance issue with the default inspection setting in Pycharm.

Basically the CPU load will hit 100% once I import some Bokeh modules and start editing/typing in a script. This seems to be caused by the recent adjustments in the typing system of Bokeh (before that everything was fine) which makes Pycharm go nuts.
Any ideas or others with the same issue?

No idea, I’ve never used PyCharm, but I have not experienced anything similar in VSCode. All I can suggest is to submit a GitHub Issue with as much detail as possible so that it can try to be investigated.

Additionally, you might want to reach out to any PyCharm support channels to see if they have any suggestions as to what might cause this. We recently added a bunch of .pyi files but there is nothing unusual about them that I am aware.