throwaway10102·قبل 5 سنوات·discussLatest Python (> 3.7?) typing combined with mypy --strict is the best of both worlds. Highly suggest you try it out.
throwaway10102·قبل 5 سنوات·discussYou can use it with source control, I do it for about 18 notebooks I use on a daily basis:https://github.com/kynan/nbstripout