You could absolutely write `encapsulate`, but you will lose out on all of the established code completion and other IDE features.
I don't care about code completion at all. When I type "a", I don't want anything to happen on my screen except for an "a" to appear. I think that all the flickering stuff that the average programmer experiences on their screen burns more mental energy than it saves.
My "encapsulate" was 4 lines of code at most IIRC. As someone mentioned, autocomplete in PyCharm did not work.
FWIW I care about code completion, and using a library that broke my workflow is not fun.