How did I fix «AttributeError: module 'collections' has no attribute 'Mapping'» on `certbot renew`?

How did I upgrade Certbot in Debian 10?