Some arguments to rich.console.Console—like width—accept None as an argument and are documented as Optional but are typed as only int, raising some type checking errors if width=None is passed.
https://github.com/willmcgugan/rich/blob/a05a5a1c2f95f25db70ac3657e99f0bab652e2cd/rich/console.py#L577