Skip to content

[BUG] No Optional typing in args that accept None in Console. #1180

@paw-lu

Description

@paw-lu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions