~/talk

How we Dealt with Poor Code Analysis Support in Our Heavy Projects

Talkat XtremePython 2021 · 2021-11-25..11-28· [developer-experience]
links:none on file
slides:none on file

Decorators that wrap functions keep runtime signatures but break IDE static analysis, so the solution is generating PEP 484/561 stub (.pyi) files plus a py.typed marker; an importer introspects safe modules, extracts inspect.signature and docstrings, and writes stubs automatically. The open‑source tool stop-maker requires modules to set __all__, emits corrected signatures and imports, and restores autocompletion and type checks for IDEs and linters; it works in production with that limitation.

AI-written summary · about

  1. 0:00Intro
  2. 0:45Demonstration
  3. 2:12Login decorator
  4. 4:27What went wrong
  5. 6:55Autonomous decorator
  6. 11:10Stop files
  7. 16:15Solution
  8. 17:35Code
  9. 22:17Bonus
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.